MDL-77291 behat: Fix some behat scenarios
Some behat scenarios were using labels with links to access some specific PHP files. Now that labels are also displayed in the course index, the region needs to be defined in the step to access to the expected link (otherwise, the one in the course index will be used).
This commit is contained in:
@@ -14,7 +14,7 @@ Feature: Atto editor with customised toolbar
|
||||
| label | L1 | <a href="../lib/editor/atto/tests/fixtures/custom_toolbar_example.php">FixtureLink</a> | C1 | label1 |
|
||||
When I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "FixtureLink"
|
||||
And I click on "FixtureLink" "link" in the "region-main" "region"
|
||||
|
||||
@javascript
|
||||
Scenario: Confirm that both editors have different toolbars but still function
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: Atto with enable/disable function.
|
||||
| label | L1 | <a href="../lib/editor/tests/fixtures/disable_control_example.php">Control Enable/Disable Atto</a> | C1 | label1 |
|
||||
And I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Control Enable/Disable Atto"
|
||||
And I click on "Control Enable/Disable Atto" "link" in the "region-main" "region"
|
||||
|
||||
@javascript
|
||||
Scenario: Check disable Atto editor.
|
||||
|
||||
@@ -18,7 +18,7 @@ Feature: Text area with enable/disable function.
|
||||
And I set the field "Text editor" to "Plain text area"
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Control Enable/Disable Text area"
|
||||
And I click on "Control Enable/Disable Text area" "link" in the "region-main" "region"
|
||||
|
||||
@javascript
|
||||
Scenario: Check disable Text area editor.
|
||||
|
||||
@@ -18,7 +18,7 @@ Feature: Tinymce with enable/disable function.
|
||||
And I set the field "Text editor" to "TinyMCE HTML editor"
|
||||
And I press "Save changes"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Control Enable/Disable Tinymce"
|
||||
And I click on "Control Enable/Disable Tinymce" "link" in the "region-main" "region"
|
||||
|
||||
@javascript
|
||||
Scenario: Check disable Tinymce editor.
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: Forms with a large number of fields
|
||||
| activity | name | intro | course | idnumber |
|
||||
| label | L1 | <a href="../lib/tests/fixtures/max_input_vars.php">FixtureLink</a> | C1 | label1 |
|
||||
When I am on the "C1" "Course" page logged in as "admin"
|
||||
And I follow "FixtureLink"
|
||||
And I click on "FixtureLink" "link" in the "region-main" "region"
|
||||
|
||||
# Note: These tests do not actually use JavaScript but they don't work with
|
||||
# the headless 'browser'.
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: Read-only forms should work
|
||||
| activity | name | intro | course | idnumber |
|
||||
| label | L1 | <a href="../lib/tests/fixtures/readonlyform.php?sections=1">Fixture link</a> | C1 | label1 |
|
||||
Given I am on the "C1" "Course" page logged in as "admin"
|
||||
And I follow "Fixture link"
|
||||
And I click on "Fixture link" "link" in the "region-main" "region"
|
||||
When I expand all fieldsets
|
||||
Then the field "Name" matches value "Important information"
|
||||
|
||||
@@ -26,7 +26,7 @@ Feature: Read-only forms should work
|
||||
| activity | name | intro | course | idnumber |
|
||||
| label | L1 | <a href="../lib/tests/fixtures/readonlyform.php?sections=2">Fixture link</a> | C1 | label1 |
|
||||
Given I am on the "C1" "Course" page logged in as "admin"
|
||||
And I follow "Fixture link"
|
||||
And I click on "Fixture link" "link" in the "region-main" "region"
|
||||
When I expand all fieldsets
|
||||
Then the field "Name" matches value "Important information"
|
||||
Then the field "Other" matches value "Other information"
|
||||
|
||||
Reference in New Issue
Block a user