MDL-59658 core: Add login/logout steps for course participants scenario

* Add student1 and student2 login/logout steps for the course
  participants filtering scenario in order to have last access data
  for students 1 and 2 since the participants table is sorted by last
  access by default.
* Remove @javascript tags for the following scenario:
  - Filter users on assignment submission page
  - Filter users on view gradebook page
  - Filter users on course participants page
  JS is not really necessary in these scenario and we can get faster
  execution time.
This commit is contained in:
Jun Pataleta
2017-08-01 15:09:34 +08:00
parent d509f80c48
commit 3120ebab9d
+6 -3
View File
@@ -64,7 +64,6 @@ Feature: Initials bar
| student23 | C1 | student |
| student24 | C1 | student |
@javascript
Scenario: Filter users on assignment submission page
Given the following "activities" exist:
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
@@ -123,7 +122,6 @@ Feature: Initials bar
And I should see "Bstudent Astudent"
And I should see "Cstudent Cstudent"
@javascript
Scenario: Filter users on view gradebook page
Given the following "activities" exist:
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
@@ -184,11 +182,16 @@ Feature: Initials bar
And I should see "Bstudent Astudent"
And I should see "Cstudent Cstudent"
@javascript
Scenario: Filter users on course participants page
Given the following "activities" exist:
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
| assign | C1 | assign1 | TestAssignment | Test assignment description | 0 | 0 |
And I log in as "student1"
And I am on "Course 1" course homepage
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I log out
And I log in as "teacher"
And I am on "Course 1" course homepage
And I follow "Participants"