Skip to content

Commit

Permalink
Upgrade: Replace deprecated Behat steps and fix a Behat scenario whic…
Browse files Browse the repository at this point in the history
…h broke on 4.4.
  • Loading branch information
abias committed Aug 22, 2024
1 parent 7eef5b4 commit d0f3c11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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-22 - Upgrade: Replace deprecated Behat steps and fix a Behat scenario which broke on 4.4.
* 2024-08-20 - Prepare compatibility for Moodle 4.4.

### v4.3-r2
Expand Down
9 changes: 5 additions & 4 deletions tests/behat/local_sandbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,26 @@ Feature: Configuring the sandbox plugin
And I log in as "admin"
And I am on "Sandbox Test Course" course homepage
And I navigate to "Course reuse" in current page administration
And I select "Restore" from the "jump" singleselect
And I upload "local/sandbox/tests/fixtures/sandbox-test.mbz" file to "Files" filemanager
And I click on "Restore" "link"
And I upload "local/sandbox/tests/fixtures/sandbox-test.mbz" file to "Backup file" filemanager
And I click on "Restore" "button"
And I click on "Continue" "button"
And I click on "Continue" "button" in the ".bcs-current-course.backup-section" "css_element"
And I click on "Next" "button"
And I select "Yes" from the "Overwrite course configuration" singleselect
And I click on "Next" "button"
And I click on "Perform restore" "button"
And I click on "Continue" "button"
And I run all adhoc tasks
And I navigate to "Courses > Sandbox" in site administration
And I upload "local/sandbox/tests/fixtures/sandbox-test.mbz" file to "Course backups" filemanager
And I click on "Save changes" "button"
And I log out

@testme
Scenario: Check basic restore functionality.
When I log in as "admin"
And I am on "Sandbox Test Course" course homepage with editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
And I add a assign activity to course "Sandbox Test Course" section "1" and I fill the form with:
| Assignment name | This is an assignment |
And I add the "Calendar" block
Then I should see "This is an assignment"
Expand Down

0 comments on commit d0f3c11

Please sign in to comment.