mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-58788 behat: backport of course navigation step
These got introduced in master on 3353cfd / MDL-58265 It will be useful for third party devs sharing feature files between multiple branches.
- Loading branch information
1 parent
b06b50c
commit 9ddd0bd
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
admin/tool/behat/tests/behat/backported_step_definitions.feature
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
@tool @tool_behat | |||
Feature: Backported behat step definitions | |||
In order to provide feature file compatibility between multiple Moodle versions | |||
As a developer | |||
I need to be able to use backported steps from newer Moodle versiosn | |||
|
|||
Background: | |||
Given the following "users" exist: | |||
| username | firstname | lastname | email | | |||
| student1 | Student | 1 | student1@example.com | | |||
| teacher1 | Teacher | 1 | teacher1@example.com | | |||
And the following "courses" exist: | |||
| fullname | shortname | format | | |||
| Course 1 | C101 | topics | | |||
And the following "course enrolments" exist: | |||
| user | course | role | | |||
| student1 | C101 | student | | |||
| teacher1 | C101 | teacher | | |||
|
|||
Scenario: I am on the course homepage | |||
When I log in as "student1" | |||
And I am on "Course 1" course homepage | |||
Then I should see "Topic 1" | |||
|
|||
@javascript | |||
Scenario: I am on the course homepage | |||
When I log in as "teacher1" | |||
And I am on "Course 1" course homepage | |||
Then I should see "Topic 1" |
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