Skip to content

Commit

Permalink
Bugfix: Fix behat for new waiting list accordion (extra click necessa…
Browse files Browse the repository at this point in the history
…ry).
  • Loading branch information
ibernhardf committed Jan 15, 2025
1 parent 3e561a1 commit 968b0e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/behat/booking_manage_waiting_list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,26 @@ Feature: In a course add a booking option and manage its waiting list
And I click on "Book other users" "link" in the ".allbookingoptionstable_r1" "css_element"
And I wait until the page is ready
## Confirm all 4 students' bookings
And I click on "[data-target='#accordion-item-waitinglist']" "css_element"
And I wait until the page is ready
And I click on the element with the number "4" with the dynamic identifier "waitinglist" and action "confirmbooking"
And I wait until the page is ready
And I click on "Book" "button" in the ".modal-footer" "css_element"
And I wait until the page is ready
And I click on "[data-target='#accordion-item-waitinglist']" "css_element"
And I wait until the page is ready
And I click on the element with the number "3" with the dynamic identifier "waitinglist" and action "confirmbooking"
And I wait until the page is ready
And I click on "Book" "button" in the ".modal-footer" "css_element"
And I wait until the page is ready
And I click on "[data-target='#accordion-item-waitinglist']" "css_element"
And I wait until the page is ready
And I click on the element with the number "2" with the dynamic identifier "waitinglist" and action "confirmbooking"
And I wait until the page is ready
And I click on "Book" "button" in the ".modal-footer" "css_element"
And I wait until the page is ready
And I click on "[data-target='#accordion-item-waitinglist']" "css_element"
And I wait until the page is ready
And I click on the element with the number "1" with the dynamic identifier "waitinglist" and action "confirmbooking"
And I wait until the page is ready
And I click on "Book" "button" in the ".modal-footer" "css_element"
Expand Down Expand Up @@ -171,6 +179,8 @@ Feature: In a course add a booking option and manage its waiting list
And I click on "Student 2 ([email protected])" "text"
And I click on "Remove" "button"
## Cancel waiting list for student 4
And I click on "[data-target='#accordion-item-waitinglist']" "css_element"
And I wait until the page is ready
And I click on the element with the number "1" with the dynamic identifier "waitinglist" and action "unconfirmbooking"
And I wait until the page is ready
And I click on "Book" "button" in the ".modal-footer" "css_element"
Expand Down

0 comments on commit 968b0e2

Please sign in to comment.