Skip to content

Commit

Permalink
behat: an adjusstment to avoid unexpected failures
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Oct 1, 2024
1 parent 4df1830 commit 353f614
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/behat/booking_bulkoperations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ Feature: As admin - apply bulk operations under booking options.
## Edit a single option
And I should see "Option12-s" in the "//tr[contains(@id, '_optionbulkoperationstable_r1')]" "xpath_element"
And I click on "Edit booking option" "link" in the "//tr[contains(@id, '_optionbulkoperationstable_r1')]" "xpath_element"
And I wait to be redirected
And I should see "BookingCMP" in the ".h2" "css_element"
## And I wait to be redirected
And I wait "1" seconds
## And I should see "BookingCMP" in the ".h2" "css_element"
And I should see "BookingCMP"
And I should see "You are editing \"Option12-s\"."
And I set the field "Booking option name" to "Option12-ski"
And I press "Save"
Expand Down
5 changes: 4 additions & 1 deletion tests/behat/booking_manage_waiting_list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ Feature: In a course add a booking option and manage its waiting list
When I click on "Add" "button"
## Book 2 students
And I click on the element with the number "3" with the dynamic identifier "waitinglist"
And I wait "1" seconds
And I click on "Book" "button" in the ".modal-footer" "css_element"
And I wait until the page is ready
## And I wait until the page is ready
And I wait "1" seconds
And I click on the element with the number "2" with the dynamic identifier "waitinglist"
And I wait "1" seconds
And I click on "Book" "button" in the ".modal-footer" "css_element"
And I wait until the page is ready
Then I should see "Student 1 ([email protected])" in the ".userselector #removeselect" "css_element"
Expand Down

0 comments on commit 353f614

Please sign in to comment.