mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +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
|
@ -21,8 +21,7 @@ Feature: Enable Block blog menu in a course
|
|||
| enableblogs | 0 |
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Blog menu" block
|
||||
Then I should see "Blogging is disabled!" in the "Blog menu" "block"
|
||||
|
||||
|
@ -32,8 +31,7 @@ Feature: Enable Block blog menu in a course
|
|||
| useblogassociations | 0 |
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Blog menu" block
|
||||
Then I should see "Blog entries" in the "Blog menu" "block"
|
||||
And I should see "Add a new entry" in the "Blog menu" "block"
|
||||
|
@ -47,8 +45,7 @@ Feature: Enable Block blog menu in a course
|
|||
| useblogassociations | 1 |
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Blog menu" block
|
||||
Then I should see "Blog entries" in the "Blog menu" "block"
|
||||
And I should see "Add a new entry" in the "Blog menu" "block"
|
||||
|
@ -62,8 +59,7 @@ Feature: Enable Block blog menu in a course
|
|||
| enablerssfeeds | 0 |
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Blog menu" block
|
||||
Then I should not see "Blog RSS feed" in the "Blog menu" "block"
|
||||
And I should see "Add a new entry" in the "Blog menu" "block"
|
||||
|
@ -74,8 +70,7 @@ Feature: Enable Block blog menu in a course
|
|||
| enablerssfeeds | 1 |
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Blog menu" block
|
||||
Then I should see "Blog RSS feed" in the "Blog menu" "block"
|
||||
And I should see "Add a new entry" in the "Blog menu" "block"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: Enable Block blog menu in an activity
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Assignment" to section "1" and I fill the form with:
|
||||
| Assignment name | Test assignment 1 |
|
||||
| Description | Offline text |
|
||||
|
@ -31,7 +30,7 @@ Feature: Enable Block blog menu in an activity
|
|||
|
||||
Scenario: Students use the blog menu block to post blogs
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add a new entry"
|
||||
When I set the following fields to these values:
|
||||
|
@ -40,7 +39,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I press "Save changes"
|
||||
Then I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog!"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Blog entries"
|
||||
And I should see "S1 First Blog"
|
||||
|
@ -48,7 +47,7 @@ Feature: Enable Block blog menu in an activity
|
|||
|
||||
Scenario: Students use the blog menu block to view their blogs about the activity
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -60,7 +59,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
|
@ -70,7 +69,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -80,7 +79,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 First Blog"
|
||||
And I should see "My course blog is better!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
When I follow "View my entries about this Assignment"
|
||||
Then I should see "S2 First Blog"
|
||||
|
@ -89,7 +88,7 @@ Feature: Enable Block blog menu in an activity
|
|||
|
||||
Scenario: Students use the blog menu block to view all blogs about the assignment
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -101,7 +100,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
|
@ -111,7 +110,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -121,7 +120,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 First Blog"
|
||||
And I should see "My course blog is better!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
When I follow "View all entries about this Assignment"
|
||||
Then I should see "S1 First Blog"
|
||||
|
@ -130,7 +129,7 @@ Feature: Enable Block blog menu in an activity
|
|||
|
||||
Scenario: Students use the blog menu block to view all their blog entries
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -142,7 +141,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
|
@ -152,7 +151,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -162,7 +161,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 First Blog"
|
||||
And I should see "My course blog is better!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
When I follow "Blog entries"
|
||||
Then I should see "S2 First Blog"
|
||||
|
@ -171,7 +170,7 @@ Feature: Enable Block blog menu in an activity
|
|||
|
||||
Scenario: Teacher searches for student blogs
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -183,7 +182,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
|
@ -193,7 +192,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Assignment: Test assignment 1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
|
@ -205,7 +204,7 @@ Feature: Enable Block blog menu in an activity
|
|||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I set the field "blogsearchquery" to "First"
|
||||
And I press "Search"
|
||||
|
|
|
@ -19,14 +19,13 @@ Feature: Students can use block blog menu in a course
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Blog menu" block
|
||||
And I log out
|
||||
|
||||
Scenario: Students use the blog menu block to post blogs
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add a new entry"
|
||||
When I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
|
@ -34,14 +33,14 @@ Feature: Students can use block blog menu in a course
|
|||
And I press "Save changes"
|
||||
Then I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog!"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Blog entries"
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog!"
|
||||
|
||||
Scenario: Students use the blog menu block to view their blogs about the course
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
|
@ -52,7 +51,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
|
@ -61,7 +60,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
|
@ -70,7 +69,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 First Blog"
|
||||
And I should see "My course blog is better!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "View my entries about this course"
|
||||
Then I should see "S2 First Blog"
|
||||
And I should not see "S2 Second Blog"
|
||||
|
@ -78,7 +77,7 @@ Feature: Students can use block blog menu in a course
|
|||
|
||||
Scenario: Students use the blog menu block to view all blogs about the course
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
|
@ -89,7 +88,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
|
@ -98,7 +97,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
|
@ -107,7 +106,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 First Blog"
|
||||
And I should see "My course blog is better!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "View all entries for this course"
|
||||
Then I should see "S1 First Blog"
|
||||
And I should see "S2 First Blog"
|
||||
|
@ -115,7 +114,7 @@ Feature: Students can use block blog menu in a course
|
|||
|
||||
Scenario: Students use the blog menu block to view all their blog entries
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
|
@ -126,7 +125,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
|
@ -135,7 +134,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
|
@ -144,7 +143,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 First Blog"
|
||||
And I should see "My course blog is better!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Blog entries"
|
||||
Then I should see "S2 First Blog"
|
||||
And I should see "S2 Second Blog"
|
||||
|
@ -152,7 +151,7 @@ Feature: Students can use block blog menu in a course
|
|||
|
||||
Scenario: Teacher searches for student blogs
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
|
@ -163,7 +162,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
|
@ -172,7 +171,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "S2 Second Blog"
|
||||
And I should see "My unrelated blog!"
|
||||
And I should not see "Associated Course: C1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add an entry about this course"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
|
@ -183,7 +182,7 @@ Feature: Students can use block blog menu in a course
|
|||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I set the field "blogsearchquery" to "First"
|
||||
And I press "Search"
|
||||
Then I should see "S1 First Blog"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue