Skip to content

Commit

Permalink
adjust behat to use mandatory semester definition in the booking inst…
Browse files Browse the repository at this point in the history
…ance
  • Loading branch information
semteacher committed Sep 22, 2024
1 parent 48f6da2 commit 135b580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/behat/booking_price_formula.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Feature: As a teacher - configure and use booking's price formula feature.
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
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 |
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 ## |
And the following "mod_booking > pricecategories" exist:
| ordernum | identifier | name | defaultvalue | disabled | pricecatsortorder |
| 1 | default | Base Price | 70.1 | 0 | 1 |
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 |
And the following "mod_booking > options" exist:
| booking | text | course | description | datesmarker | semester | dayofweek | dayofweektime | dayofweekstarttime | dayofweekendtime |
| My booking | Price formula option - Dates In timeslot | C1 | Option deskr | 1 | nextmay | Mon | Mon, 18:00-20:00 | 1800 | 2000 |
Expand Down
6 changes: 3 additions & 3 deletions tests/behat/booking_semesters.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Feature: As a teacher - configure and use booking's semesters feature.
| admin1 | C1 | manager |
| student1 | C1 | student |
| student2 | C1 | student |
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 |
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 ## |
| nextsummer | NextSummer | ## first day of June next year ## | ## last day of August next year ## |
And the following "activities" exist:
| activity | course | name | intro | bookingmanager | eventtype | semester | Default view for booking options | Send confirmation e-mail |
| booking | C1 | My booking | My booking description | teacher1 | Webinar | nextsummer | All bookings | Yes |
And the following "mod_booking > options" exist:
| booking | text | course | description | semester |
| My booking | Price formula option - Dates In timeslot | C1 | Option deskr | nextsummer |
Expand Down

0 comments on commit 135b580

Please sign in to comment.