File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ Feature : Book new Cargo
2
+ In order to overbook a Voyage
3
+ As a booking manager
4
+ I need to be able to book a Cargo that has a 10 percent larger size than the capacity of the Voyage
5
+
6
+ @javascript
7
+ Scenario : Add a Cargo
8
+ Given I am on "application/cargo/add"
9
+ When I fill in "size" with "110"
10
+ And I click the submit button
11
+ Then the url should match "application/cargo/index"
12
+
13
+ @javascript
14
+ Scenario : Add a Voyage with low capacity
15
+ Given I am on "application/voyage/add"
16
+ When I fill in "voyage_number" with "SHIP123"
17
+ And I fill in "name" with "Low Voyage"
18
+ And I fill in "capacity" with "100"
19
+ And I click the submit button
20
+ Then the url should match "application/voyage/index"
21
+
22
+ @javascript
23
+ Scenario : Book Cargo on Voyage even though Voyage has not enough free capacity
24
+ Given I am on "application/cargo/index"
25
+ When I click on first item in the list "cargo-list"
26
+ And I wait until I am on page "application/cargo/show"
27
+ And I select "SHIP123" from "voyage_number"
28
+ And I click the submit button
29
+ Then the url should match "application/booking/booking"
30
+ And the response should contain "Cargo was successfully booked"
You can’t perform that action at this time.
0 commit comments