Given
Login as "pba1-carrier" and set token of apiUsername "super-admin-bausch"
3s 024ms
And
Create default accepted mode of transportation by API with "pba1-carrier"
2s 381ms
And
If user is login then logout
602ms
And
Login as "bausch-admin" and set token of apiUsername "super-admin-bausch"
6s 839ms
And
Create transport "CREATE_LOAD_PL" by JSON file as "super-admin-bausch"
394ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /transports; status: 422, komunikat: [errors:[Nie masz uprawnień do wykonania tej akcji.]]
at org.junit.Assert.fail(Assert.java:88)
at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:86)
at CucumberTests.Transport.CreateTransport.createByJSONFileAs(CreateTransport.java:87)
at ✽.Create transport "CREATE_LOAD_PL" by JSON file as "super-admin-bausch"(file:Features/Atom/Transport/File.feature:112)
And
Transfer transport to carrier by JSON file "super-admin-bausch" "false" confirmation
000ms
And
Set "advice" inputs from JSON file "ADVICE_LOAD" "super-admin-bausch"
000ms
And
Click button advice in transport table "LOAD_PL"
000ms
And
Set advice window in schedule
000ms
And
Fill advice form
000ms
And
Click advice save button and wait for advice form to disappear
000ms
And
Find transport in table with status "advice-added"
000ms
When
Confirm statuses until reach "on-the-way"
000ms
Then
Verify that "delivery_document" document can be downloaded
000ms