Given
Set token of apiUsername "super-admin-piast"
226ms
And
Delete invitations with email "automaty31415@test.pl"
012ms
And
Prepare user "piast-admin" details with all notifications and "automaty31415@test.pl" by JSON file
1s 124ms
Then
Create invitation by JSON file "super-admin-alrec" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"
410ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /invitations; status: 422, komunikat: io.restassured.internal.RestAssuredResponseImpl@31fa7d15
at org.junit.Assert.fail(Assert.java:88)
at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:86)
at CucumberTests.Invitation.RegistrationTest.createInvitationByJSONFile(RegistrationTest.java:64)
at ✽.Create invitation by JSON file "super-admin-alrec" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"(file:Features/Atom/Invitations/Invitation.feature:174)
When
Login as "piast-admin"
000ms
Then
Go to "INVITATIONS_TAB"
000ms
And
Go to invitation details
000ms
Then
Reject invitation by button as user
000ms
When
If user is login then logout
000ms
Then
Login as "super-admin-alrec" and set token of apiUsername "super-admin-alrec"
000ms
And
Go to "INVITATIONS_TAB"
000ms
And
Go to "REJECTED_TAB" invitation status tab
000ms
Then
Invitation is displayed on list "automaty31415@test.pl"
000ms