mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-71912 core: Fix behat tests for blocks
Fix the behat tests for blocks
This commit is contained in:
parent
4d2bfb38df
commit
0b66b88bb2
1 changed files with 7 additions and 5 deletions
|
@ -20,13 +20,13 @@ Feature: Block appearances
|
||||||
| book | Test book name | Test book description | C1 | book1 | 1 |
|
| book | Test book name | Test book description | C1 | book1 | 1 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
And I follow "Test survey name"
|
And I click on "Test survey name" "link" in the "region-main" "region"
|
||||||
And I navigate to "Settings" in current page administration
|
And I navigate to "Settings" in current page administration
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Survey type | ATTLS (20 item version) |
|
| Survey type | ATTLS (20 item version) |
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
And I follow "Test book name"
|
And I click on "Test book name" "link" in the "region-main" "region"
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Chapter title | Book title |
|
| Chapter title | Book title |
|
||||||
| Content | Book content test test |
|
| Content | Book content test test |
|
||||||
|
@ -41,7 +41,7 @@ Feature: Block appearances
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
|
|
||||||
Scenario: Block settings can be modified so that a block apprears on any page
|
Scenario: Block settings can be modified so that a block apprears on any page
|
||||||
When I follow "Test survey name"
|
When I click on "Test survey name" "link" in the "region-main" "region"
|
||||||
Then I should see "Comments" in the "Comments" "block"
|
Then I should see "Comments" in the "Comments" "block"
|
||||||
And I am on "Course 1" course homepage
|
And I am on "Course 1" course homepage
|
||||||
And I configure the "Comments" block
|
And I configure the "Comments" block
|
||||||
|
@ -49,14 +49,16 @@ Feature: Block appearances
|
||||||
| Display on page types | Any course page |
|
| Display on page types | Any course page |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
And I turn editing mode off
|
And I turn editing mode off
|
||||||
And I follow "Test survey name"
|
And I click on "Test survey name" "link" in the "region-main" "region"
|
||||||
And I should not see "Comments"
|
And I should not see "Comments"
|
||||||
|
|
||||||
Scenario: Block settings can be modified so that a block can be hidden
|
Scenario: Block settings can be modified so that a block can be hidden
|
||||||
When I follow "Test book name"
|
When I click on "Test book name" "link" in the "region-main" "region"
|
||||||
And I configure the "Comments" block
|
And I configure the "Comments" block
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Visible | No |
|
| Visible | No |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
|
And I click on "Topic 1" "link"
|
||||||
And I turn editing mode off
|
And I turn editing mode off
|
||||||
|
And I click on "Test book name" "link" in the "region-main" "region"
|
||||||
Then I should not see "Comments"
|
Then I should not see "Comments"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue