Skip to content

Commit

Permalink
fix fieldname and message strings in behat
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Dec 18, 2024
1 parent 003ed79 commit 77a5252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/behat/booking_instance_manage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Feature: In a course add a booking instance and manage it
And I click on "Add booking instance to template" "link" in the "[data-key=\"nav_saveinstanceastemplate\"]" "css_element"
And I set the field "Name" to "InstanceTemplate"
And I press "Save changes"
And I should see "This booking instance was sucesfully saved as template."
And I should see "This booking instance was successfully saved as template."
When I visit "/mod/booking/instancetemplatessettings.php"
Then I should see "InstanceTemplate" in the "#instancetemplatessettings_r0" "css_element"
And I click on "Delete" "button" in the "#instancetemplatessettings_r0" "css_element"
Expand All @@ -68,7 +68,7 @@ Feature: In a course add a booking instance and manage it
And I click on "Add booking instance to template" "link" in the "[data-key=\"nav_saveinstanceastemplate\"]" "css_element"
And I set the field "Name" to "InstanceTemplate"
And I press "Save changes"
And I should see "This booking instance was sucesfully saved as template."
And I should see "This booking instance was successfully saved as template."
## Create a booking instance useing template
And I am on "Course 1" course homepage with editing mode on
##And I add a "Booking" to section "0"
Expand Down
6 changes: 3 additions & 3 deletions tests/behat/booking_rules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Feature: Create global booking rules as admin and insure they are working.
And I am on the "BookingCMP" Activity page
And I click on "Settings" "icon" in the ".allbookingoptionstable_r1" "css_element"
And I click on "Cancel this booking option" "link" in the ".allbookingoptionstable_r1" "css_element"
And I set the field "Reason for cancelation of this booking option" to "rule testing"
And I set the field "Reason for cancellation of this booking option" to "rule testing"
And I click on "Save changes" "button"
And I should see "Option-football" in the ".allbookingoptionstable_r1" "css_element"
And I should see "Cancelled" in the ".allbookingoptionstable_r1" "css_element"
Expand Down Expand Up @@ -259,7 +259,7 @@ Feature: Create global booking rules as admin and insure they are working.
When I am on the "BookingCMP" Activity page logged in as admin
And I click on "Settings" "icon" in the ".allbookingoptionstable_r1" "css_element"
And I click on "Cancel this booking option" "link" in the ".allbookingoptionstable_r1" "css_element"
And I set the field "Reason for cancelation of this booking option" to "rule testing"
And I set the field "Reason for cancellation of this booking option" to "rule testing"
And I click on "Save changes" "button"
And I should see "Option-football" in the ".allbookingoptionstable_r1" "css_element"
And I should see "Cancelled" in the ".allbookingoptionstable_r1" "css_element"
Expand Down Expand Up @@ -406,7 +406,7 @@ Feature: Create global booking rules as admin and insure they are working.
When I am on the "BookingCMP" Activity page logged in as admin
And I click on "Settings" "icon" in the ".allbookingoptionstable_r1" "css_element"
And I click on "Cancel this booking option" "link" in the ".allbookingoptionstable_r1" "css_element"
And I set the field "Reason for cancelation of this booking option" to "rule testing"
And I set the field "Reason for cancellation of this booking option" to "rule testing"
And I click on "Save changes" "button"
And I should see "Option-football" in the ".allbookingoptionstable_r1" "css_element"
And I should see "Cancelled" in the ".allbookingoptionstable_r1" "css_element"
Expand Down

0 comments on commit 77a5252

Please sign in to comment.