Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Feb 19, 2024
1 parent 3411d58 commit fd06fa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/behat/availability_relative_module.feature
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +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 am on "Course 1" course homepage with editing mode on
And I delete "Page A1" activity
And I reload the page
And I run all adhoc tasks
Expand Down
3 changes: 3 additions & 0 deletions tests/behat/availability_relativedate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Feature: availability_relativedate
And I set the field "relativestart" to "1"
And I press "Save changes"

And I am on "Course 1" course homepage with editing mode on
And I edit the section "2"
When I expand all fieldsets
Then I should see "5" in the "Restrict access" "fieldset"
Expand All @@ -99,6 +100,7 @@ Feature: availability_relativedate
And I press "Cancel"

# 5 days after course end date.
And I am on "Course 1" course homepage with editing mode on
And I edit the section "3"
When I expand all fieldsets
Then I should see "None" in the "Restrict access" "fieldset"
Expand All @@ -109,6 +111,7 @@ Feature: availability_relativedate
And I set the field "relativestart" to "2"
And I press "Save changes"

And I am on "Course 1" course homepage
And I should see "PageA" in the "region-main" "region"
And I should see "2 hours after course start date" in the "region-main" "region"
And I should see "4 days before course end date" in the "region-main" "region"
Expand Down

0 comments on commit fd06fa3

Please sign in to comment.