MDL-78158 behat: Behat cleanup and optimisation
This commit is contained in:
@@ -20,9 +20,9 @@ Feature: Import course's contents into another course
|
||||
Scenario: Import course's contents to another course
|
||||
Given I log in as "teacher1"
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | section |
|
||||
| data | Test database name | Test database description | C1 | database1 | 2 |
|
||||
| forum | Test forum name | Test forum name description | C1 | forum1 | 1 |
|
||||
| activity | name | course | idnumber |
|
||||
| data | Test database name | C1 | database1 |
|
||||
| forum | Test forum name | C1 | forum1 |
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| comments | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
@@ -32,8 +32,7 @@ Feature: The activity results block doesn't display student scores for unsupport
|
||||
| id_config_gradeformat | Percentages |
|
||||
| id_config_nameformat | Display full names |
|
||||
And I press "Save changes"
|
||||
When I follow "Test assignment"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
When I am on the "Test assignment" "assign activity editing" page
|
||||
And I set the following fields to these values:
|
||||
| id_grade_modgrade_type | None |
|
||||
And I press "Save and return to course"
|
||||
|
||||
@@ -21,8 +21,6 @@ Feature: The activity results block can have administrator set defaults
|
||||
| course | C1 |
|
||||
| idnumber | 0001 |
|
||||
| name | Test assignment |
|
||||
| intro | Offline text |
|
||||
| section | 1 |
|
||||
| assignsubmission_file_enabled | 0 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
@@ -17,8 +17,7 @@ Feature: Enable Block Badges on the frontpage and view awarded badges
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| badges | System | 1 | site-index | side-pre |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
# Issue badge 1 of 2
|
||||
And I navigate to "Badges > Add a new badge" in current page administration
|
||||
And I set the following fields to these values:
|
||||
@@ -35,7 +34,5 @@ Feature: Enable Block Badges on the frontpage and view awarded badges
|
||||
And I press "Award badge"
|
||||
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
|
||||
And I press "Award badge"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
When I am on site homepage
|
||||
Then I should see "Badge 1" in the "Latest badges" "block"
|
||||
|
||||
@@ -31,9 +31,7 @@ Feature: Enable Block blog menu in an activity
|
||||
| blog_menu | Activity module | 0001 | mod-assign-view | side-pre |
|
||||
|
||||
Scenario: Students use the blog menu block to post 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 a new entry"
|
||||
When I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -41,16 +39,13 @@ 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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
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 activity
|
||||
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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -59,10 +54,7 @@ Feature: Enable Block blog menu in an activity
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this Assignment!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -71,8 +63,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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
@@ -81,17 +72,14 @@ 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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
When I follow "View my entries about this Assignment"
|
||||
Then I should see "S2 First Blog"
|
||||
And I should not see "S2 Second Blog"
|
||||
And I should not see "S1 First Blog"
|
||||
|
||||
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 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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -100,10 +88,7 @@ Feature: Enable Block blog menu in an activity
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this Assignment!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -112,8 +97,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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
@@ -122,17 +106,14 @@ 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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
When I follow "View all entries about this Assignment"
|
||||
Then I should see "S1 First Blog"
|
||||
And I should see "S2 First Blog"
|
||||
And I should not see "S2 Second Blog"
|
||||
|
||||
Scenario: Students use the blog menu block to view all their blog entries
|
||||
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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -141,10 +122,7 @@ Feature: Enable Block blog menu in an activity
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this Assignment!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -153,8 +131,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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
@@ -163,17 +140,14 @@ 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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
When I follow "Blog entries"
|
||||
Then I should see "S2 First Blog"
|
||||
And I should see "S2 Second Blog"
|
||||
And I should not see "S1 First Blog"
|
||||
|
||||
Scenario: Teacher searches for student 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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -182,10 +156,7 @@ Feature: Enable Block blog menu in an activity
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this Assignment!"
|
||||
And I should see "Associated Assignment: Test assignment 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -194,8 +165,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 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
And I am on the "Test assignment 1" "assign activity" page
|
||||
And I follow "Add an entry about this Assignment"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 First Blog |
|
||||
@@ -204,10 +174,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 log out
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test assignment 1"
|
||||
When I am on the "Test assignment 1" "assign activity" page logged in as teacher1
|
||||
And I set the field "Search" to "First"
|
||||
And I press "Search"
|
||||
Then I should see "S1 First Blog"
|
||||
|
||||
@@ -23,8 +23,7 @@ Feature: Students can use block blog menu in a course
|
||||
| blog_menu | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
Scenario: Students use the blog menu block to post 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 a new entry"
|
||||
When I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -38,8 +37,7 @@ Feature: Students can use block blog menu in a course
|
||||
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 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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -48,9 +46,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this course!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -75,8 +71,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should not see "S1 First Blog"
|
||||
|
||||
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 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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -85,9 +80,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this course!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -112,8 +105,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should not see "S2 Second Blog"
|
||||
|
||||
Scenario: Students use the blog menu block to view all their blog entries
|
||||
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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -122,9 +114,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this course!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -149,8 +139,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should not see "S1 First Blog"
|
||||
|
||||
Scenario: Teacher searches for student 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"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S1 First Blog |
|
||||
@@ -159,9 +148,7 @@ Feature: Students can use block blog menu in a course
|
||||
And I should see "S1 First Blog"
|
||||
And I should see "This is my awesome blog about this course!"
|
||||
And I should see "Associated Course: C1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student2
|
||||
And I follow "Add a new entry"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | S2 Second Blog |
|
||||
@@ -179,9 +166,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 log out
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as teacher1
|
||||
And I set the field "Search" to "First"
|
||||
And I press "Search"
|
||||
Then I should see "S1 First Blog"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -128,9 +128,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
||||
| user | group |
|
||||
| student1 | G1 |
|
||||
| student2 | G2 |
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
When I am on the "Course 1" "course editing" page logged in as teacher1
|
||||
And I set the following fields to these values:
|
||||
| id_groupmode | Separate groups |
|
||||
| id_groupmodeforce | Yes |
|
||||
@@ -145,14 +143,10 @@ Feature: Enable the calendar block in a course and test it's functionality
|
||||
And I set the following fields to these values:
|
||||
| Group | Group 1 |
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
And I hover over today in the calendar
|
||||
And I should see "Group Event"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "Group Event"
|
||||
And I am on the "Course 1" course page logged in as student2
|
||||
And I hover over today in the calendar
|
||||
And I should not see "Group Event"
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@ Feature: Add a comment to the comments block
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| comments | Course | C1 | course-view-* | side-pre |
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
|
||||
@javascript
|
||||
Scenario: Add a comment with Javascript enabled
|
||||
|
||||
@@ -22,14 +22,9 @@ Feature: Enable Block comments on an activity page and view comments
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| comments | Activity module | page1 | mod-page-* | side-pre |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I follow "Test page name"
|
||||
And I am on the "Test page name" "page activity" page logged in as teacher1
|
||||
And I follow "Show comments"
|
||||
And I add "I'm a comment from the teacher" comment to comments block
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test page name"
|
||||
When I am on the "Test page name" "page activity" page logged in as student1
|
||||
And I follow "Show comments"
|
||||
Then I should see "I'm a comment from the teacher"
|
||||
|
||||
@@ -19,12 +19,9 @@ Feature: Enable Block comments on a course page and view comments
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| comments | Course | C1 | course-view-* | side-pre |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
And I follow "Show comments"
|
||||
And I add "I'm a comment from the teacher" comment to comments block
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I follow "Show comments"
|
||||
Then I should see "I'm a comment from the teacher"
|
||||
|
||||
@@ -20,12 +20,9 @@ Feature: Delete comment block messages
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| comments | Course | C1 | course-view-* | side-pre |
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
And I add "Comment from student1" comment to comments block
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
And I add "Comment from teacher1" comment to comments block
|
||||
When I delete "Comment from student1" comment from comments block
|
||||
Then I should not see "Comment from student1"
|
||||
|
||||
@@ -23,21 +23,16 @@ Feature: Enable Block Completion in a course using manual completion by others
|
||||
| completionstatus | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
Scenario: Add the block to a the course and mark a student complete.
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
Given I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "Course completion" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| Teacher | 1 |
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I should see "Status: Not yet started" in the "Course completion status" "block"
|
||||
And I should see "No" in the "Teacher" "table_row"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "Reports > Course completion" in current page administration
|
||||
And I follow "Click to mark user complete"
|
||||
# Running completion task just after clicking sometimes fail, as record
|
||||
@@ -45,17 +40,14 @@ Feature: Enable Block Completion in a course using manual completion by others
|
||||
And I wait "1" seconds
|
||||
And I run the scheduled task "core\task\completion_regular_task"
|
||||
And I am on site homepage
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
Then I should see "Status: Complete" in the "Course completion status" "block"
|
||||
And I should see "Yes" in the "Teacher" "table_row"
|
||||
And I follow "More details"
|
||||
And I should see "Yes" in the "Marked complete by Teacher" "table_row"
|
||||
|
||||
Scenario: Add the block to a the course and require multiple roles to mark a student complete.
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
Given I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "Course completion" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
@@ -63,29 +55,21 @@ Feature: Enable Block Completion in a course using manual completion by others
|
||||
| Non-editing teacher | 1 |
|
||||
| id_role_aggregation | ALL selected roles to mark when the condition is met |
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I should see "Status: Not yet started" in the "Course completion status" "block"
|
||||
And I should see "No" in the "Teacher" "table_row"
|
||||
And I should see "No" in the "Non-editing teacher" "table_row"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "Reports > Course completion" in current page administration
|
||||
And I follow "Click to mark user complete"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
And I should see "Status: In progress" in the "Course completion status" "block"
|
||||
And I should see "Yes" in the "Teacher" "table_row"
|
||||
And I should see "No" in the "Non-editing teacher" "table_row"
|
||||
And I follow "More details"
|
||||
And I should see "Yes" in the "Marked complete by Teacher" "table_row"
|
||||
And I should see "No" in the "Marked complete by Non-editing teacher" "table_row"
|
||||
And I log out
|
||||
And I log in as "teacher2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as teacher2
|
||||
And I navigate to "Reports > Course completion" in current page administration
|
||||
And I follow "Click to mark user complete"
|
||||
# Running completion task just after clicking sometimes fail, as record
|
||||
@@ -93,9 +77,7 @@ Feature: Enable Block Completion in a course using manual completion by others
|
||||
And I wait "1" seconds
|
||||
And I run the scheduled task "core\task\completion_regular_task"
|
||||
And I am on site homepage
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
Then I should see "Status: Complete" in the "Course completion status" "block"
|
||||
And I should see "Yes" in the "Teacher" "table_row"
|
||||
And I should see "Yes" in the "Non-editing teacher" "table_row"
|
||||
|
||||
@@ -20,16 +20,13 @@ Feature: Enable Block Completion in a course using manual self completion
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| completionstatus | Course | C1 | course-view-* | side-pre |
|
||||
| selfcompletion | Course | C1 | course-view-* | side-pre |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "Course completion" in current page administration
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
| id_criteria_self | 1 |
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I should see "Status: Not yet started" in the "Course completion status" "block"
|
||||
And I should see "No" in the "Self completion" "table_row"
|
||||
And I follow "Complete course"
|
||||
|
||||
@@ -21,15 +21,13 @@ Feature: Course summary block used in a course
|
||||
| course_summary | Course | C101 | course-view-* | side-pre |
|
||||
|
||||
Scenario: Student can view course summary
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
Then "Course summary" "block" should exist
|
||||
And I should see "Course summary" in the "Course summary" "block"
|
||||
And I should see "Proved the course summary block works!" in the "Course summary" "block"
|
||||
|
||||
Scenario: Teacher can not see edit icon when edit mode is off
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as teacher1
|
||||
Then I should see "Proved the course summary block works!" in the "Course summary" "block"
|
||||
And I should see "Course summary" in the "Course summary" "block"
|
||||
And "Edit" "link" should not exist in the "Course summary" "block"
|
||||
|
||||
@@ -5,11 +5,10 @@ Feature: Course summary block used on the frontpage
|
||||
I can use the course summary block on the frontpage
|
||||
|
||||
Background:
|
||||
Given I log in as "admin"
|
||||
And I enable "course_summary" "block" plugin
|
||||
And the following "blocks" exist:
|
||||
Given the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| course_summary | System | 1 | site-index | side-pre |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
|
||||
@@ -20,24 +20,18 @@ Feature: The search forums block allows users to search for forum posts on cours
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| news_items | Course | C1 | course-view-* | side-pre |
|
||||
| search_forums | Course | C1 | course-view-* | side-pre |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I am on the "Course 1" "course editing" page logged in as teacher1
|
||||
And I set the field "id_newsitems" to "1"
|
||||
And I press "Save and display"
|
||||
And I log out
|
||||
|
||||
Scenario: Use the search forum block in a course without any forum posts
|
||||
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
|
||||
When I set the field "Search" to "Moodle"
|
||||
And I press "Search"
|
||||
Then I should see "No posts"
|
||||
|
||||
Scenario: Use the search forum block in a course with a hidden forum and search for posts
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new topic to "Announcements" forum with:
|
||||
Given I add a new topic to "Announcements" forum with:
|
||||
| Subject | My subject |
|
||||
| Message | My message |
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
@@ -46,24 +40,18 @@ Feature: The search forums block allows users to search for forum posts on cours
|
||||
And I expand all fieldsets
|
||||
And I set the field "id_visible" to "0"
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And "Search forums" "block" should exist
|
||||
When I set the field "Search" to "message"
|
||||
And I set the field "Search" to "message"
|
||||
And I press "Search"
|
||||
Then I should see "No posts"
|
||||
|
||||
Scenario: Use the search forum block in a course and search for posts
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new topic to "Announcements" forum with:
|
||||
Given I add a new topic to "Announcements" forum with:
|
||||
| Subject | My subject |
|
||||
| Message | My message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And "Search forums" "block" should exist
|
||||
When I set the field "Search" to "message"
|
||||
And I set the field "Search" to "message"
|
||||
And I press "Search"
|
||||
Then I should see "My subject"
|
||||
|
||||
@@ -23,8 +23,7 @@ Feature: The Section links block can be configured to display section name in ad
|
||||
| section_links | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
Scenario: Student can see section name under the Section links block
|
||||
Given I log in as "student1"
|
||||
When I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
Then I should see "7: Topic 7" in the "Section links" "block"
|
||||
And I follow "7: Topic 7"
|
||||
And I should see "First assignment"
|
||||
|
||||
@@ -15,15 +15,16 @@ Feature: Add URL to main menu block
|
||||
|
||||
@javascript
|
||||
Scenario: Add a URL in menu block and ensure it appears
|
||||
Given I log in as "admin"
|
||||
And I am on site homepage
|
||||
And the following "activity" exists:
|
||||
Given the following "activity" exists:
|
||||
| activity | url |
|
||||
| course | Acceptance test site |
|
||||
| name | reference link |
|
||||
| intro | mooooooooodle |
|
||||
| externalurl | http://www.moodle.com |
|
||||
| section | 0 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I turn editing mode on
|
||||
When I am on the "reference link" "url activity editing" page
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
|
||||
@@ -43,14 +43,13 @@ Feature: Perform basic calendar functionality
|
||||
| Event title | Really awesome event! |
|
||||
| Description | Come join this awesome event, sucka! |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I follow "This month"
|
||||
And I should see "Really awesome event!"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I follow "This month"
|
||||
And I should see "Really awesome event!"
|
||||
Then I should see "Really awesome event!"
|
||||
|
||||
@javascript
|
||||
Scenario: Create a course event
|
||||
@@ -61,8 +60,7 @@ Feature: Perform basic calendar functionality
|
||||
| Event title | Really awesome event! |
|
||||
| Description | Come join this awesome event, sucka! |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
When I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I follow "This month"
|
||||
And I click on "Really awesome event!" "link"
|
||||
And "Course 1" "link" should exist in the "Really awesome event!" "dialogue"
|
||||
@@ -82,8 +80,7 @@ Feature: Perform basic calendar functionality
|
||||
| Event title | Really awesome event! |
|
||||
| Description | Come join this awesome event |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
When I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I follow "This month"
|
||||
Then I follow "Really awesome event!"
|
||||
|
||||
@@ -95,8 +92,7 @@ Feature: Perform basic calendar functionality
|
||||
| Event title | Really awesome event! |
|
||||
| Description | Come join this awesome event, sucka! |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
When I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
And I follow "This month"
|
||||
Then I should not see "Really awesome event!"
|
||||
|
||||
@@ -168,8 +164,7 @@ Feature: Perform basic calendar functionality
|
||||
|
||||
@javascript
|
||||
Scenario: Attempt to create event without fill required fields should display validation errors
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I am on the "Course 1" course page logged in as teacher1
|
||||
And I follow "This month"
|
||||
And I click on "New event" "button"
|
||||
When I click on "Save" "button"
|
||||
@@ -195,8 +190,7 @@ Feature: Perform basic calendar functionality
|
||||
|
||||
@javascript
|
||||
Scenario: Admin can only see all courses if calendar_adminseesall setting is enabled.
|
||||
Given I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I am on the "Course 1" course page logged in as admin
|
||||
And I am viewing site calendar
|
||||
And I click on "New event" "button"
|
||||
And I set the field "Type of event" to "Course"
|
||||
@@ -242,8 +236,7 @@ Feature: Perform basic calendar functionality
|
||||
|
||||
@javascript @accessibility
|
||||
Scenario: The calendar page must be accessible
|
||||
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
|
||||
When I follow "This month"
|
||||
Then the page should meet accessibility standards
|
||||
And the page should meet "wcag131, wcag143, wcag412" accessibility standards
|
||||
@@ -269,8 +262,7 @@ Feature: Perform basic calendar functionality
|
||||
|
||||
@javascript
|
||||
Scenario: Changing the event type should clear previous data
|
||||
Given I log in as "admin"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I am on the "Course 1" course page logged in as admin
|
||||
And I follow "This month"
|
||||
And I press "New event"
|
||||
And I set the following fields to these values:
|
||||
|
||||
@@ -19,18 +19,13 @@ Feature: Allow teachers to manually mark users as complete when configured
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| completionstatus | Course | CC1 | course-view-* | side-pre |
|
||||
And I log in as "admin"
|
||||
And I am on "Completion course" course homepage
|
||||
And I am on the "Completion course" course page logged in as admin
|
||||
And I navigate to "Course completion" in current page administration
|
||||
And I set the field "Teacher" to "1"
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on "Completion course" course homepage
|
||||
And I am on the "Completion course" course page logged in as student1
|
||||
And I should see "Status: Not yet started"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on "Completion course" course homepage
|
||||
When I am on the "Completion course" course page logged in as teacher1
|
||||
And I follow "View course report"
|
||||
And I should see "Student First"
|
||||
And I follow "Click to mark user complete"
|
||||
@@ -39,7 +34,5 @@ Feature: Allow teachers to manually mark users as complete when configured
|
||||
And I wait "1" seconds
|
||||
And I run the scheduled task "core\task\completion_regular_task"
|
||||
And I am on site homepage
|
||||
And I log out
|
||||
Then I log in as "student1"
|
||||
And I am on "Completion course" course homepage
|
||||
Then I am on the "Completion course" course page logged in as student1
|
||||
And I should see "Status: Complete"
|
||||
|
||||
@@ -293,24 +293,18 @@ Feature: Group assignment submissions
|
||||
| preventsubmissionnotingroup | 0 |
|
||||
| submissiondrafts | 0 |
|
||||
| teamsubmission | 1 |
|
||||
|
||||
And the following "mod_assign > submissions" exist:
|
||||
| assign | user | onlinetext |
|
||||
| Test assignment name | student1 | I'm the student's first submission |
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| activity_modules | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
And I am on the "C1" Course page logged in as student1
|
||||
And I click on "Assignments" "link" in the "Activities" "block"
|
||||
And I should see "Submitted for grading"
|
||||
And I log out
|
||||
|
||||
And I am on the "C1" Course page logged in as student2
|
||||
And I click on "Assignments" "link" in the "Activities" "block"
|
||||
And I should see "Submitted for grading"
|
||||
And I log out
|
||||
|
||||
And I am on the "Test assignment name" Activity page logged in as teacher1
|
||||
When I navigate to "View all submissions" in current page administration
|
||||
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
|
||||
|
||||
@@ -33,6 +33,7 @@ Feature: Set availability dates for an assignment
|
||||
And the activity date in "Assignment name" should contain "Opens:"
|
||||
And the activity date in "Assignment name" should contain "##tomorrow noon##%A, %d %B %Y, %I:%M##"
|
||||
|
||||
@javascript
|
||||
Scenario: Student can see the assignment's due date in the course calendar
|
||||
Given the following "activity" exists:
|
||||
| activity | assign |
|
||||
|
||||
@@ -22,8 +22,7 @@ Feature: Users can view the list of data activities and their formatted descript
|
||||
| activity_modules | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
Scenario: Teachers can view the list of data activities and their formatted descriptions
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I am on the "Course 1" course page logged in as teacher1
|
||||
When I follow "Databases"
|
||||
Then I should see "Test database 1"
|
||||
And I should see "Test database 2"
|
||||
@@ -31,11 +30,9 @@ Feature: Users can view the list of data activities and their formatted descript
|
||||
And I should see "This is an intro with an image: "
|
||||
And "//img[contains(@src, 'some_image.jpg')]" "xpath_element" should exist
|
||||
And "//img[contains(@src, '@@PLUGINFILE@@/some_image.jpg')]" "xpath_element" should not exist
|
||||
And I log out
|
||||
|
||||
Scenario: Students can view the list of data activities and their formatted descriptions
|
||||
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
|
||||
When I follow "Databases"
|
||||
Then I should see "Test database 1"
|
||||
And I should see "Test database 2"
|
||||
@@ -43,4 +40,3 @@ Feature: Users can view the list of data activities and their formatted descript
|
||||
And I should see "This is an intro with an image: "
|
||||
And "//img[contains(@src, 'some_image.jpg')]" "xpath_element" should exist
|
||||
And "//img[contains(@src, '@@PLUGINFILE@@/some_image.jpg')]" "xpath_element" should not exist
|
||||
And I log out
|
||||
|
||||
@@ -34,7 +34,6 @@ Feature: Mapping courses in a feedback
|
||||
| activity | name | course | idnumber | anonymous | publish_stats | section |
|
||||
| feedback | Course feedback | Acceptance test site | feedback0 | 1 | 1 | 1 |
|
||||
| feedback | Another feedback | C1 | feedback1 | 1 | 1 | 0 |
|
||||
And I enable "feedback" "block" plugin
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| feedback | Course | C1 | course-view-* | side-pre |
|
||||
|
||||
@@ -24,9 +24,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| news_items | Course | C1 | course-view-* | side-pre |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I am on the "Course 1" "course editing" page logged in as teacher1
|
||||
And I expand all fieldsets
|
||||
And I set the field "id_newsitems" to "1"
|
||||
And I press "Save and display"
|
||||
@@ -37,7 +35,6 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
And I add a new topic to "Announcements" forum with:
|
||||
| Subject | Your subjective|
|
||||
| Message | Your long message |
|
||||
And I log out
|
||||
|
||||
Scenario: Perform an advanced search using any term
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
|
||||
@@ -44,8 +44,6 @@ Feature: Students can edit or delete their forum posts within a set time limit
|
||||
Given the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| recent_activity | Course | C1 | course-view-* | side-pre |
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And the following config values are set as admin:
|
||||
| maxeditingtime | 1 |
|
||||
And I am on the "Course 1" course page logged in as student1
|
||||
|
||||
@@ -95,8 +95,6 @@ Feature: Users can see the relevant recent forum posts from the recent activity
|
||||
And I am on "Course 1" course homepage
|
||||
And I should see "The egg vs the chicken" in the "Recent activity" "block"
|
||||
And I should see "Student 1's answer" in the "Recent activity" "block"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And the following config values are set as admin:
|
||||
| maxeditingtime | 1 |
|
||||
When I am on the "Course 1" course page logged in as student2
|
||||
|
||||
@@ -21,12 +21,11 @@ Feature: Importing glossary entries
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| recent_activity | Course | C1 | course-view-* | side-pre |
|
||||
| tags | Course | C1 | course-view-* | side-pre |
|
||||
And I am on the "Glossary 1" "glossary activity" page logged in as teacher1
|
||||
|
||||
@javascript @block_recent_activity
|
||||
Scenario: Importing glossary entries and checking the Recent activity block
|
||||
Given I log in as "teacher1"
|
||||
And I am on the "Glossary 1" "glossary activity" page
|
||||
And I navigate to "Import entries" in current page administration
|
||||
Given I navigate to "Import entries" in current page administration
|
||||
And I upload "mod/glossary/tests/fixtures/texfilter_glossary_en.xml" file to "File to import" filemanager
|
||||
When I press "Submit"
|
||||
Then I should see "103" in the "Total entries:" "table_row"
|
||||
@@ -37,9 +36,7 @@ Feature: Importing glossary entries
|
||||
|
||||
@javascript @block_tags
|
||||
Scenario: Importing glossary entries and checking Tags block
|
||||
Given I log in as "teacher1"
|
||||
And I am on the "Glossary 1" "glossary activity" page
|
||||
And I navigate to "Import entries" in current page administration
|
||||
Given I navigate to "Import entries" in current page administration
|
||||
And I upload "mod/glossary/tests/fixtures/musicians.xml" file to "File to import" filemanager
|
||||
When I press "Submit"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@@ -46,13 +46,11 @@ Feature: Reset all personalised pages to default
|
||||
And I log out
|
||||
|
||||
And I log in as "student1"
|
||||
And I follow "Dashboard" in the user menu
|
||||
And I should not see "Latest announcements"
|
||||
And I should see "Online users"
|
||||
And I log out
|
||||
|
||||
And I log in as "student3"
|
||||
And I follow "Dashboard" in the user menu
|
||||
And I should not see "Latest announcements"
|
||||
And I should see "Online users"
|
||||
And I log out
|
||||
@@ -64,21 +62,18 @@ Feature: Reset all personalised pages to default
|
||||
And I log out
|
||||
|
||||
And I log in as "student1"
|
||||
And I follow "Dashboard" in the user menu
|
||||
Then I should see "Latest announcements"
|
||||
And I should not see "Comments"
|
||||
And I should not see "Online users"
|
||||
And I log out
|
||||
|
||||
And I log in as "student3"
|
||||
And I follow "Dashboard" in the user menu
|
||||
And I should see "Latest announcements"
|
||||
And I should not see "Online users"
|
||||
And I log out
|
||||
|
||||
# Check that this did not affect the customised profiles.
|
||||
And I log in as "student2"
|
||||
And I follow "Profile" in the user menu
|
||||
And I am on the "student2" "user > profile" page logged in as student2
|
||||
And I should see "Logged in user"
|
||||
And I should not see "Latest announcements"
|
||||
|
||||
@@ -89,13 +84,11 @@ Feature: Reset all personalised pages to default
|
||||
And I add the "Latest announcements" block
|
||||
And I log out
|
||||
|
||||
And I log in as "student2"
|
||||
And I follow "Profile" in the user menu
|
||||
And I am on the "student2" "user > profile" page logged in as student2
|
||||
And I should not see "Latest announcements"
|
||||
And I log out
|
||||
|
||||
And I log in as "student3"
|
||||
And I follow "Profile" in the user menu
|
||||
And I am on the "student3" "user > profile" page logged in as student3
|
||||
And I should not see "Latest announcements"
|
||||
And I log out
|
||||
|
||||
@@ -105,19 +98,16 @@ Feature: Reset all personalised pages to default
|
||||
And I should see "All profile pages have been reset to default."
|
||||
And I log out
|
||||
|
||||
And I log in as "student2"
|
||||
And I follow "Profile" in the user menu
|
||||
And I am on the "student2" "user > profile" page logged in as student2
|
||||
Then I should see "Latest announcements"
|
||||
And I should not see "Logged in user"
|
||||
And I log out
|
||||
|
||||
And I log in as "student3"
|
||||
And I follow "Profile" in the user menu
|
||||
And I am on the "student3" "user > profile" page logged in as student3
|
||||
And I should see "Latest announcements"
|
||||
And I log out
|
||||
|
||||
# Check that this did not affect the customised dashboards.
|
||||
And I log in as "student1"
|
||||
And I follow "Dashboard" in the user menu
|
||||
And I should see "Comments"
|
||||
And I should not see "Latest announcements"
|
||||
|
||||
@@ -27,8 +27,7 @@ Feature: The student can navigate to their grades page and user grade report.
|
||||
| assign | C1 | a2 | Test assignment two | Submit something! | 100 |
|
||||
| assign | C1 | a3 | Test assignment three | Submit something! | 150 |
|
||||
| assign | C2 | a4 | Test assignment four | Submit something! | 150 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I am on the "Course 1" course page logged in as teacher1
|
||||
And I navigate to "View > Grader report" in the course gradebook
|
||||
And I turn editing mode on
|
||||
And I give the grade "150.00" to the user "Student 1" for the grade item "Test assignment one"
|
||||
@@ -72,8 +71,6 @@ Feature: The student can navigate to their grades page and user grade report.
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| mentees | System | 1 | site-index | side-pre |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I turn editing mode on
|
||||
And I am on the "student1" "user > profile" page
|
||||
And I click on "Preferences" "link" in the ".profile_tree" "css_element"
|
||||
And I follow "Assign roles relative to this user"
|
||||
|
||||
Reference in New Issue
Block a user