forked from Wunderbyte-GmbH/moodle-mod_booking
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Fix behat for new waiting list accordion (extra click necessa…
…ry).
- Loading branch information
1 parent
3e561a1
commit 968b0e2
Showing
1 changed file
with
10 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|