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:
Simey Lameze 2017-03-15 15:13:09 +08:00 committed by Damyon Wiese
parent 3353cfd8c1
commit fdeeaff954
458 changed files with 1697 additions and 2148 deletions

View file

@ -24,7 +24,7 @@ Feature: In a report, admin can filter log data
And the following config values are set as admin:
| loglegacy | 1 | logstore_legacy |
And I follow "Home"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "Log in as" "link"
@ -44,7 +44,7 @@ Feature: In a report, admin can filter log data
@javascript
Scenario: Filter log report for standard log reader
Given I am on course page "Course 1"
Given I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "Log in as" "link"
@ -65,9 +65,9 @@ Feature: In a report, admin can filter log data
And the following config values are set as admin:
| loglegacy | 1 | logstore_legacy |
And I follow "Home"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Home"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "Log in as" "link"

View file

@ -9,14 +9,13 @@ Feature: In a report, admin can filter log data by action
| fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 1 |
And I log in as "admin"
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
# Create Action.
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment 1 |
| Description | Offline text |
| assignsubmission_file_enabled | 0 |
And I am on course page "Course 1"
And I am on "Course 1" course homepage
# View Action.
And I follow "Test assignment 1"
# Update Action.

View file

@ -17,8 +17,7 @@ Feature: User can view activity log.
| teacher1 | C1 | editingteacher |
| student1 | 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 name |
| Description | Submit your online text |
@ -26,7 +25,7 @@ Feature: User can view activity log.
| assignsubmission_file_enabled | 0 |
And I log out
And 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 name"
When I press "Add submission"
And I set the following fields to these values:
@ -37,7 +36,7 @@ Feature: User can view activity log.
@javascript
Scenario: View Todays' and all log report for user
Given I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
When I follow "Today's logs"
@ -53,7 +52,7 @@ Feature: User can view activity log.
And I click on "Disable" "link" in the "Standard log" "table_row"
And I log out
And I log in as "teacher1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
When I follow "Today's logs"