Skip to content

Commit

Permalink
Fix a behat test which broke recently
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Aug 20, 2024
1 parent 0399729 commit 42257b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2024-08-19 - Fix a behat test which broke recently
* 2024-08-11 - Add section for scheduled tasks to README
* 2024-08-11 - Updated Moodle Plugin CI to latest upstream recommendations

Expand Down
4 changes: 2 additions & 2 deletions tests/behat/local_sandbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ Feature: Configuring the sandbox plugin
| Assignment name | This is an assignment |
And I add the "Calendar" block
Then I should see "This is an assignment"
And I should see "Calendar" in the "//*[@id='region-pre' or @id='block-region-side-pre']/descendant::*[contains(concat(' ', normalize-space(@class), ' '), ' block ')]" "xpath_element"
And I should see "Calendar" in the "#block-region-side-pre .block_calendar_month" "css_element"
When I run the scheduled task "local_sandbox\task\restore_courses"
And I am on "Sandbox Test Course" course homepage
Then I should not see "This is an assignment"
And "//*[@id='region-pre' or @id='block-region-side-pre']" "xpath_element" should not be visible
And "#block-region-side-pre .block_calendar_month" "css_element" should not exist

Scenario: Check if enrolled users are removed after the restore.
Given the following "users" exist:
Expand Down

0 comments on commit 42257b3

Please sign in to comment.