mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -36,7 +36,7 @@ Feature: Add and configure blocks throughout the site
|
|||
And I set the following fields to these values:
|
||||
| Page contexts | Display throughout the entire site |
|
||||
And I press "Save changes"
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
Then I should see "Comments" in the "Comments" "block"
|
||||
And I should see "Save comment" in the "Comments" "block"
|
||||
And I am on site homepage
|
||||
|
@ -44,7 +44,7 @@ Feature: Add and configure blocks throughout the site
|
|||
And I set the following fields to these values:
|
||||
| Default weight | -10 (first) |
|
||||
And I press "Save changes"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
# The first block matching the pattern should be top-left block
|
||||
And I should see "Comments" in the "//*[@id='region-pre' or @id='block-region-side-pre']/descendant::*[contains(concat(' ', normalize-space(@class), ' '), ' block ')]" "xpath_element"
|
||||
|
||||
|
@ -55,8 +55,7 @@ Feature: Add and configure blocks throughout the site
|
|||
|
||||
Scenario: Blocks on courses can have roles assigned to them
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I follow "Turn editing on"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Search forums" block
|
||||
Then I should see "Assign roles in Search forums block"
|
||||
|
||||
|
@ -71,4 +70,4 @@ Feature: Add and configure blocks throughout the site
|
|||
| Block title | Foo " onload="document.getElementsByTagName('body')[0].remove()" alt=" |
|
||||
| Content | Example |
|
||||
When I press "Save changes"
|
||||
Then I should see "Course overview"
|
||||
Then I should see "My overview"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue