Given
Set token of apiUsername "super-admin-piast"
868ms
And
Delete invitations with email "automatyy19q@test.pl"
4s 201ms
And
Change tax id in existing companies with given tax id number "super-admin-piast" in JSON "CREATE_SUPPLIER_INVITATION"
027ms
And
If user is login then logout
15s 091ms
And
Create invitation by JSON file "super-admin-piast" for "automatyy19q@test.pl" "CREATE_SUPPLIER_INVITATION"
636ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /invitations; status: 422, komunikat: [errors:[Your company has already invited the user with the selected e-mail and is waiting for an answer. If in doubt please contact our support at creator.]]
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-piast" for "automatyy19q@test.pl" "CREATE_SUPPLIER_INVITATION"(file:Features/Atom/Invitations/Invitation.feature:25)
When
Mock invitation email by admin panel "super-admin-piast" "automatyy19q@test.pl"
000ms
And
Fill tax id registration page "byJSON"
000ms
And
Verify that user is redirected to registration page
000ms
And
Register to application "SUPPLIER"
000ms
Then
Check if user can be logged "automatyy19q@test.pl"
000ms