diff --git a/tests/behat/booking_add_and_book_option.feature b/tests/behat/booking_add_and_book_option.feature index ad0101c0b..0546d8c2f 100644 --- a/tests/behat/booking_add_and_book_option.feature +++ b/tests/behat/booking_add_and_book_option.feature @@ -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 | diff --git a/tests/behat/booking_availability.feature b/tests/behat/booking_availability.feature index 15a21a315..f0e6de255 100644 --- a/tests/behat/booking_availability.feature +++ b/tests/behat/booking_availability.feature @@ -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 | diff --git a/tests/behat/booking_availability_custom_form.feature b/tests/behat/booking_availability_custom_form.feature index 31013af44..676e3a8ac 100644 --- a/tests/behat/booking_availability_custom_form.feature +++ b/tests/behat/booking_availability_custom_form.feature @@ -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 | diff --git a/tests/behat/booking_book_cancel_option.feature b/tests/behat/booking_book_cancel_option.feature index 6a4a1f9ef..30e276f4e 100644 --- a/tests/behat/booking_book_cancel_option.feature +++ b/tests/behat/booking_book_cancel_option.feature @@ -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 ## | diff --git a/tests/behat/booking_book_policy_setting.feature b/tests/behat/booking_book_policy_setting.feature index bf64a16b5..5ca129f22 100644 --- a/tests/behat/booking_book_policy_setting.feature +++ b/tests/behat/booking_book_policy_setting.feature @@ -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? | diff --git a/tests/behat/booking_bulkoperations.feature b/tests/behat/booking_bulkoperations.feature index 0366d69e5..df7bde6d6 100644 --- a/tests/behat/booking_bulkoperations.feature +++ b/tests/behat/booking_bulkoperations.feature @@ -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 | diff --git a/tests/behat/booking_create_template.feature b/tests/behat/booking_create_template.feature index 8b8014597..75798edf5 100644 --- a/tests/behat/booking_create_template.feature +++ b/tests/behat/booking_create_template.feature @@ -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 | diff --git a/tests/behat/booking_delete.feature b/tests/behat/booking_delete.feature index afb7983b5..552c9d035 100644 --- a/tests/behat/booking_delete.feature +++ b/tests/behat/booking_delete.feature @@ -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 | diff --git a/tests/behat/booking_duplicate_with_options.feature b/tests/behat/booking_duplicate_with_options.feature index 4b208b56f..3b7031722 100644 --- a/tests/behat/booking_duplicate_with_options.feature +++ b/tests/behat/booking_duplicate_with_options.feature @@ -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 | diff --git a/tests/behat/booking_edit_setting.feature b/tests/behat/booking_edit_setting.feature index bafa6ecec..2f14f0461 100644 --- a/tests/behat/booking_edit_setting.feature +++ b/tests/behat/booking_edit_setting.feature @@ -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 | diff --git a/tests/behat/booking_enrolllink.feature b/tests/behat/booking_enrolllink.feature index b23065e04..aaf065ada 100644 --- a/tests/behat/booking_enrolllink.feature +++ b/tests/behat/booking_enrolllink.feature @@ -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 | diff --git a/tests/behat/booking_installments.feature b/tests/behat/booking_installments.feature index aacb064ff..8e66ed8b3 100644 --- a/tests/behat/booking_installments.feature +++ b/tests/behat/booking_installments.feature @@ -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 | diff --git a/tests/behat/booking_instance_manage.feature b/tests/behat/booking_instance_manage.feature index 073331923..5d570be67 100644 --- a/tests/behat/booking_instance_manage.feature +++ b/tests/behat/booking_instance_manage.feature @@ -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 diff --git a/tests/behat/booking_list_filtering.feature b/tests/behat/booking_list_filtering.feature index 081e8610c..38fc619b4 100644 --- a/tests/behat/booking_list_filtering.feature +++ b/tests/behat/booking_list_filtering.feature @@ -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 | diff --git a/tests/behat/booking_manage_entities.feature b/tests/behat/booking_manage_entities.feature index 614f1a13f..8176d3c4a 100644 --- a/tests/behat/booking_manage_entities.feature +++ b/tests/behat/booking_manage_entities.feature @@ -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 | diff --git a/tests/behat/booking_manage_waiting_list.feature b/tests/behat/booking_manage_waiting_list.feature index 28c4ea9b9..6f31752fb 100644 --- a/tests/behat/booking_manage_waiting_list.feature +++ b/tests/behat/booking_manage_waiting_list.feature @@ -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 | diff --git a/tests/behat/booking_messages.feature b/tests/behat/booking_messages.feature index 6de619c8b..99dae7dff 100644 --- a/tests/behat/booking_messages.feature +++ b/tests/behat/booking_messages.feature @@ -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 | diff --git a/tests/behat/booking_multisessions.feature b/tests/behat/booking_multisessions.feature index 0829fb764..790e5f3a5 100644 --- a/tests/behat/booking_multisessions.feature +++ b/tests/behat/booking_multisessions.feature @@ -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 | diff --git a/tests/behat/booking_navigation_setting.feature b/tests/behat/booking_navigation_setting.feature index 27fbccb1c..2a13d882a 100644 --- a/tests/behat/booking_navigation_setting.feature +++ b/tests/behat/booking_navigation_setting.feature @@ -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 | diff --git a/tests/behat/booking_price_formula.feature b/tests/behat/booking_price_formula.feature index 97cf5d692..1c0d01999 100644 --- a/tests/behat/booking_price_formula.feature +++ b/tests/behat/booking_price_formula.feature @@ -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 ## | diff --git a/tests/behat/booking_pricecancelation.feature b/tests/behat/booking_pricecancelation.feature index a831848fc..4132c3290 100644 --- a/tests/behat/booking_pricecancelation.feature +++ b/tests/behat/booking_pricecancelation.feature @@ -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 | diff --git a/tests/behat/booking_prices.feature b/tests/behat/booking_prices.feature index 24e0f133e..939b5273c 100644 --- a/tests/behat/booking_prices.feature +++ b/tests/behat/booking_prices.feature @@ -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 | diff --git a/tests/behat/booking_rules.feature b/tests/behat/booking_rules.feature index 91401b1de..9ce0d4361 100644 --- a/tests/behat/booking_rules.feature +++ b/tests/behat/booking_rules.feature @@ -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 | diff --git a/tests/behat/booking_self_learning_course.feature b/tests/behat/booking_self_learning_course.feature index e4a959749..93a3bd31b 100644 --- a/tests/behat/booking_self_learning_course.feature +++ b/tests/behat/booking_self_learning_course.feature @@ -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 | diff --git a/tests/behat/booking_semesters.feature b/tests/behat/booking_semesters.feature index 8b4001590..561800941 100644 --- a/tests/behat/booking_semesters.feature +++ b/tests/behat/booking_semesters.feature @@ -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 ## | diff --git a/tests/behat/booking_subbooking.feature b/tests/behat/booking_subbooking.feature index ce2faeedc..2b290068d 100644 --- a/tests/behat/booking_subbooking.feature +++ b/tests/behat/booking_subbooking.feature @@ -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 | diff --git a/tests/behat/booking_teachers.feature b/tests/behat/booking_teachers.feature index f18c8df8b..a9ffc77b2 100644 --- a/tests/behat/booking_teachers.feature +++ b/tests/behat/booking_teachers.feature @@ -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 |