Given
Set token of apiUsername "super-admin-piast"
239ms
And
Delete invitations with email "automaty31415@test.pl"
015ms
And
Change tax id in existing companies with given tax id number "super-admin-piast" in JSON "CREATE_SUPPLIER_INVITATION"
012ms
And
If user is login then logout
278ms
And
Create invitation by JSON file "super-admin-piast" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"
500ms
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 ALUXS, 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-piast" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"(file:Features/Atom/Invitations/Invitation.feature:140)
When
Mock invitation email by admin panel "super-admin-piast" "automaty31415@test.pl"
000ms
And
Verify that user is redirected to registration page
000ms
And
Fill tax id registration page "byJSON"
000ms
And
Register to application "SUPPLIER"
000ms
Given
Login as "super-admin-piast" and set token of apiUsername "super-admin-piast"
000ms
When
Go to "INVITATIONS_TAB"
000ms
Then
Go to "ACCEPTED_TAB" invitation status tab
000ms
And
Invitation is displayed on list "automaty31415@test.pl"
000ms