Given
Set token of apiUsername "super-admin-piast"
238ms
And
Delete invitations with email "automaty31415@test.pl"
017ms
And
Prepare user "piast-admin" details with all notifications and "automaty31415@test.pl" by JSON file
1s 194ms
Then
Create invitation by JSON file "super-admin-alrec" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"
371ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /invitations; status: 422, komunikat: [errors:[Niezgodny numer NIP! W platformie istnieje już użytkownik z podanym adresem mailowym (loginem). Jest on przypisany do firmy Piast Cargo Transport Sp. z o.o., NIP: . Prosimy o poprawienie danych.]]
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:175)
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