-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement complete booking procedure as single page js app
- New resource RouteCandidate - Add endpoint to update CargoRouting - Expand UI functionality - Adapt book new cargo feature test
- Loading branch information
Showing
17 changed files
with
568 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
Feature: Book new Cargo | ||
In order to manage a transport of a Cargo | ||
As a booking clerk | ||
I need to define an origin and a destination of a Cargo and assign it to a proper itinerary | ||
I need to define an origin and a destination of a Cargo and assign it to a proper route | ||
|
||
@javascript | ||
Scenario: Add a Cargo and assign Itinerary | ||
Given I am on "application/cargo/add" | ||
When I select "DEHAM" from "origin" | ||
And I select "USNYC" from "destination" | ||
Scenario: Add a Cargo and assign route | ||
Given I am on "application/bookingApp/index" | ||
Then I should wait until I see "#book-cargo" | ||
When I follow "book-cargo" | ||
And I select "DEHAM" from "origin" | ||
And I select "USNYC" from "final_destination" | ||
And I click the submit button | ||
And I follow "assign-itinerary-link-1" | ||
Then the url should match "application/cargo/show/trackingid/[\w-]{36,36}" | ||
And I should see 1 ".itinerary" elements | ||
Then I should wait until I see "#route-candidate-list" | ||
When I follow first ".assign-cargo-btn" link | ||
Then I should wait until I see "#cargo-list" | ||
When I click on first item in the list "#cargo-list" | ||
Then I should see 1 ".itinerary" elements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.