Given
Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen"
4s 828ms
And
Prepare user "lantmannen-guard" details with all notifications and "apolloautomattest@gmail.com" by JSON file
878ms
And
Prepare user "pla1-carrier" details with all notifications and "apolloautomattest@gmail.com" by JSON file
1s 069ms
And
Add access to the warehouse "Magazyn - Nowa Sól" to the user "lantmannen-guard" by JSON file
762ms
And
Login as "lantmannen-guard" and set token of apiUsername "super-admin-lantmannen"
4s 543ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-lantmannen"
223ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /transports; status: 422, komunikat: [errors:[Właściwość [id] klasy [class logintegra.commands.warehouse.TimeWindowCommand] nie może być null]]
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" by JSON file as "super-admin-lantmannen"(file:Features/Atom/Statuses/RejectStatuses.feature:10)
And
Check if reject date is not visible
000ms
When
Reject status: Book of disinfection
000ms
And
Check if reject date is visible
000ms
Then
If user is login then logout
000ms
And
Login as "lantmannen-admin"
000ms
And
Check if note was added to transport after status rejection
000ms
And
Check if history note was added to transport after status rejection - "LOAD"
000ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nieaktualna księga mycia i dezynfekcji"
000ms
And
Check if user got a mail
000ms