Skip to content

Commit

Permalink
adjust all behat to clean booking caches
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Nov 30, 2024
1 parent 6d8aa47 commit 294396a
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/behat/booking_add_and_book_option.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Feature: In a booking instance create booking options
| teacher2 | C1 | editingteacher |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype |
| booking | C1 | My booking | My booking description | teacher1 | Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_availability.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Feature: Test booking options avaialbility conditions
| student1 | C1 | student |
| student2 | C1 | student |
| student3 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Activate e-mails (confirmations, notifications and more) | Booking option name |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes | New option - Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_availability_custom_form.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: Create custom availability form for booking options as admin and bookin
| student1 | Student | 1 | student1@example.com | S1 | default |
| student2 | Student | 2 | student2@example.com | S2 | discount1 |
| student3 | Student | 3 | student3@example.com | S3 | discount2 |
And I clean booking cache
And the following "core_payment > payment accounts" exist:
| name |
| Account1 |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_book_cancel_option.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: In a booking instance
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "mod_booking > semesters" exist:
| identifier | name | startdate | enddate |
| nextmomth | NextMonth | ## first day of next month ## | ## last day of next month ## |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_book_policy_setting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: Test of book policy setting in a booking instance
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Send confirmation e-mail | bookingpolicy |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes | Are you sure? |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_bulkoperations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: As admin - apply bulk operations under booking options.
| teacher1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Send confirmation e-mail |
| booking | C1 | BookingCMP | Booking description | teacher1 | Webinar | All bookings | Yes |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_create_template.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: In a booking create a template
| teacher1 | C1 | editingteacher |
| teacher1 | C1 | manager |
| student1 | C1 | student |
And I clean booking cache
And the following "mod_booking > pricecategories" exist:
| ordernum | identifier | name | defaultvalue | disabled | pricecatsortorder |
| 1 | default | Base Price | 70 | 0 | 1 |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_delete.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: In a booking delete
| admin | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_duplicate_with_options.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: In a booking create booking option with multiple custom options
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Activate e-mails (confirmations, notifications and more) | Booking option name |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes | New option - Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_edit_setting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: Edit booking's organizer, info and semester settings as a teacher or ad
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Send confirmation e-mail |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_enrolllink.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Feature: Create enrollink availability form for booking options with connected c
And the following config values are set as admin:
| config | value | plugin |
| pricecategoryfield | userpricecat | booking |
And I clean booking cache
And the following "core_payment > payment accounts" exist:
| name |
| Account1 |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_installments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: Enabling installments as admin configuring installments as a teacher an
| teacher1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "mod_booking > pricecategories" exist:
| ordernum | identifier | name | defaultvalue | disabled | pricecatsortorder |
| 1 | default | Price | 88 | 0 | 1 |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_instance_manage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Feature: In a course add a booking instance and manage it
| teacher1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache

@javascript
Scenario: Booking: Create instance as teacher
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_list_filtering.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Feature: In a booking - create options and filter it
| student1 | C1 | student |
| student2 | C1 | student |
| student3 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Booking option name |
| booking | C1 | My booking | My booking description | admin1 | Webinar | All bookings | New option - Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_manage_entities.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Feature: In a course add a booking option and manage its entities
| teacher1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype |
| booking | C1 | BookingEnt | My booking description | teacher1 | Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_manage_waiting_list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Feature: In a course add a booking option and manage its waiting list
| student3 | C1 | student |
| student4 | C1 | student |
| student5 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype |
| booking | C1 | My booking | My booking description | teacher1 | Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_messages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: Test messaging features in a booking
| admin | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Activate e-mails (confirmations, notifications and more) | Booking option name |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes | New option - Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_multisessions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: In a booking create multi session options
| admin | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Activate e-mails (confirmations, notifications and more) | Booking option name |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes | New option - Webinar |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_navigation_setting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: Configure and use booking's pagination and perform filtering - as a tea
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Send confirmation e-mail |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_price_formula.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: As a teacher - configure and use booking's price formula feature.
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "mod_booking > semesters" exist:
| identifier | name | startdate | enddate |
| nextmay | Next May | ## first day of May next year ## | ## last day of May next year ## |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_pricecancelation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: Create booking option with price and force students answer as admin tha
| teacher1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | cancancelbook | Default view for booking options | Send confirmation e-mail |
| booking | C1 | BookingCMP | Booking description | teacher1 | Webinar | 1 | All bookings | Yes |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_prices.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Feature: As an admin - configure booking's prices feature and validate it as stu
| teacher1 | Teacher | 1 | teacher1@example.com | T1 | |
| student1 | Student | 1 | student1@example.com | S1 | discount1 |
| student2 | Student | 2 | student2@example.com | S2 | zeroprice |
And I clean booking cache
And the following "core_payment > payment accounts" exist:
| name |
| Account1 |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_rules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Feature: Create global booking rules as admin and insure they are working.
| student2 | C1 | student |
| student3 | C1 | student |
| student4 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Send confirmation e-mail |
| booking | C1 | BookingCMP | Booking description | teacher1 | Webinar | All bookings | Yes |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_self_learning_course.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Feature: Configure and validate self-learning course feature for booking option
| teacher2 | C1 | editingteacher |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | autoenrol |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | 1 |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_semesters.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: As a teacher - configure and use booking's semesters feature.
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "mod_booking > semesters" exist:
| identifier | name | startdate | enddate |
| nextmay | NextMay | ## first day of May next year ## | ## last day of May next year ## |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_subbooking.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: Enabling subboking as admin configuring subboking as a teacher and book
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Send confirmation e-mail |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | All bookings | Yes |
Expand Down
1 change: 1 addition & 0 deletions tests/behat/booking_teachers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Feature: In a booking - create options and assign or substituing teachers
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
And I clean booking cache
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | Default view for booking options | Activate e-mails (confirmations, notifications and more) | Booking option name |
| booking | C1 | My booking | My booking description | admin1 | Webinar | All bookings | Yes | New option - Webinar |
Expand Down

0 comments on commit 294396a

Please sign in to comment.