Skip to content

Commit

Permalink
main_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Feb 16, 2024
1 parent eb7379a commit e6cd510
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions tests/behat/availability_relative_module.feature
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Feature: availability_relativedate relative activities
And I set the field "relativestart" to "7"
And I set the field "relativecoursemodule" to "Page A1"
And I press "Save changes"
And I change window size to "large"
And I delete "Page A1" activity
And I reload the page
And I run all adhoc tasks
Expand Down
11 changes: 5 additions & 6 deletions tests/behat/availability_relativedate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Feature: availability_relativedate

Scenario: Test relative conditions
Given I add a page activity to course "Course 1" section "1"
And I set the field "Name" to "Page 1: 2 hours after course start date"
And I expand all fieldsets
And I set the field "Name" to "Page 1: 2 hours after course start date"
And I click on "Add restriction..." "button"
And I click on "Relative date" "button" in the "Add restriction..." "dialogue"
And I set the field "relativenumber" to "2"
Expand All @@ -46,8 +46,8 @@ Feature: availability_relativedate
And I press "Save and return to course"

And I add a page activity to course "Course 1" section "1"
And I set the field "Name" to "Page 2: 4 days before course end date"
And I expand all fieldsets
And I set the field "Name" to "Page 2: 4 days before course end date"
And I click on "Add restriction..." "button"
And I click on "Relative date" "button" in the "Add restriction..." "dialogue"
And I set the field "relativenumber" to "4"
Expand All @@ -56,8 +56,8 @@ Feature: availability_relativedate
And I press "Save and return to course"

And I add a page activity to course "Course 1" section "1"
And I set the field "Name" to "Page 3: 6 weeks after user enrolment date"
And I expand all fieldsets
And I set the field "Name" to "Page 3: 6 weeks after user enrolment date"
And I click on "Add restriction..." "button"
And I click on "Relative date" "button" in the "Add restriction..." "dialogue"
And I set the field "relativenumber" to "6"
Expand All @@ -66,16 +66,15 @@ Feature: availability_relativedate
And I press "Save and return to course"

And I add a page activity to course "Course 1" section "1"
And I set the field "Name" to "Page 4: 7 months after enrolment method end date"
And I expand all fieldsets
And I set the field "Name" to "Page 4: 7 months after enrolment method end date"
And I click on "Add restriction..." "button"
And I click on "Relative date" "button" in the "Add restriction..." "dialogue"
And I set the field "relativenumber" to "7"
And I set the field "relativednw" to "4"
And I set the field "relativestart" to "4"
And I press "Save and return to course"
Then I should see "boe"


# 5 days before course start date.
And I edit the section "2"
When I expand all fieldsets
Expand Down

0 comments on commit e6cd510

Please sign in to comment.