Given
Login by Api as "super-admin-piast" and get token and expect status "200"
129ms
When
Create transport by invalid JSON file "CREATE_LOAD_STEP_TYPE_NAME_INCORRECT_VALUES" as "super-admin-piast" for api version "v1"
183ms
Then
Check if response status code equals "422"
000ms
And
Check if response message contains "Niepoprawna wartość w polu stepTypeName. Poprawne wartości to: load, unload"
012ms
java.lang.AssertionError: W wiadomości został wysłany nie poprawny tekst
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at CucumberTests.Api.ApiTransportTest.checkIfResponseMessageContains(ApiTransportTest.java:94)
at ✽.Check if response message contains "Niepoprawna wartość w polu stepTypeName. Poprawne wartości to: load, unload"(file:Features/Api/Transport.feature:41)