mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-78158 behat: Behat cleanup and optimisation
This commit is contained in:
parent
0d5b8d1337
commit
241a8eb343
34 changed files with 116 additions and 324 deletions
|
@ -32,9 +32,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
|
|||
| blog_recent | Activity module | 0001 | mod-assign-view | side-pre |
|
||||
|
||||
Scenario: Students use the recent blog entries block to view blogs
|
||||
Given I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
Given I am on the "Test assignment 1" "assign activity" page logged in as student1
|
||||
And I follow "Add an entry about this Assignment"
|
||||
When I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
|
@ -48,9 +46,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
|
|||
And I should see "This is my awesome blog!"
|
||||
|
||||
Scenario: Students only see a few entries in the recent blog entries block
|
||||
Given I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
Given I am on the "Test assignment 1" "assign activity" page logged in as student1
|
||||
And I follow "Add an entry about this Assignment"
|
||||
# Blog 1 of 5
|
||||
And I set the following fields to these values:
|
||||
|
|
|
@ -24,8 +24,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
|
|||
And the "multilang" filter applies to "content and headings"
|
||||
|
||||
Scenario: Students use the recent blog entries block to view blogs
|
||||
Given I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I am on the "Course 1" course page logged in as student1
|
||||
And I follow "Add an entry about this course"
|
||||
When I set the following fields to these values:
|
||||
| Entry title | S1 First Blog <span lang="RU" class="multilang">RUSSIAN</span><span lang="EN" class="multilang">ENGLISH</span> |
|
||||
|
@ -39,8 +38,7 @@ Feature: Students can use the recent blog entries block to view recent entries o
|
|||
And I should see "This is my awesome blog!"
|
||||
|
||||
Scenario: Students only see a few entries in the recent blog entries block
|
||||
Given I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I am on the "Course 1" course page logged in as student1
|
||||
And I follow "Add an entry about this course"
|
||||
# Blog 1 of 5
|
||||
And I set the following fields to these values:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue