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-75230 behat: Lesson Behat tests optimised
Replace steps that manually add Lesson instances via the UI and use Behat generators. This improves the speed of the Behat test runs.
- Loading branch information
1 parent
0780e87
commit 367027f
Showing
41 changed files
with
248 additions
and
659 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,9 @@ Feature: Verify that all form fields values can be get and set | |
|
||
@javascript | ||
Scenario: with JS enabled all form fields getters and setters works as expected | ||
Given the following "activities" exist: | ||
| activity | course | name | | ||
| lesson | C1 | Test lesson | | ||
Then I am on the "Course 1" "groups" page | ||
# Select (multi-select & AJAX) - Checking "I set the field" and "select box should contain". | ||
And I set the field "groups" to "Group 2" | ||
|
@@ -150,11 +153,8 @@ Feature: Verify that all form fields values can be get and set | |
And the "members" select box should contain "Student 2 ([email protected])" | ||
And the "members" select box should not contain "Student 3 ([email protected])" | ||
# Checkbox (AJAX) - Checking "I set the field" and "I set the following fields to these values". | ||
And I am on "Course 1" course homepage | ||
And I add a "Lesson" to section "1" | ||
And I am on the "Test lesson" "lesson activity editing" page | ||
And I set the following fields to these values: | ||
| Name | Test lesson | | ||
| Description | Test lesson description | | ||
| available[enabled] | 1 | | ||
And I set the field "deadline[enabled]" to "1" | ||
# Checkbox (AJAX) - Checking "the field matches value" before saving. | ||
|
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
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
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
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
Oops, something went wrong.