forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-76731 behat: add steps to check for version
Co-authored-by: Andrew Nicols <[email protected]>
- Loading branch information
1 parent
15a695d
commit 75be72b
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@core | ||
Feature: Check for minimum or maximimum version of Moodle | ||
In order adapt acceptance tests for different versions of Moodle | ||
As a developer | ||
I should be able to skip tests according to the Moodle version present on a site | ||
|
||
Scenario: Minimum version too low | ||
Given the site is running Moodle version 99.0 or higher | ||
# The following steps should not be executed. If they are, the test will fail. | ||
When I log in as "admin" | ||
Then I should not see "Home" | ||
|
||
Scenario: Maximum version too high | ||
Given the site is running Moodle version 3.0 or lower | ||
# The following steps should not be executed. If they are, the test will fail. | ||
When I log in as "admin" | ||
Then I should not see "Home" | ||
|
||
Scenario: Minimum version OK | ||
Given the site is running Moodle version 3.0 or higher | ||
When I log in as "admin" | ||
Then I should see "Home" | ||
|
||
Scenario: Maximum version OK | ||
Given the site is running Moodle version 99.0 or lower | ||
When I log in as "admin" | ||
Then I should see "Home" |