MDL-58265 core_test: remove unnecessary steps

This commmit removes steps that take behat to site home page
to actually get to a course page.

Part of MDL-55611 epic.
This commit is contained in:
Simey Lameze 2017-03-14 14:01:03 +08:00 committed by Damyon Wiese
parent c987d1b2ef
commit 93be3f730c
60 changed files with 7 additions and 162 deletions

View file

@ -177,7 +177,6 @@ Feature: Group assignment submissions
| GG1 | G1 |
| GG1 | G2 |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
@ -215,7 +214,6 @@ Feature: Group assignment submissions
And I press "Save changes"
And I log out
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Test assignment name"
And I should see "3" in the "Groups" "table_row"

View file

@ -38,7 +38,6 @@ Feature: Submissions are unlocked when a new attempt is given
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
@ -73,7 +72,6 @@ Feature: Submissions are unlocked when a new attempt is given
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration

View file

@ -36,7 +36,7 @@ Feature: Mapping courses in a feedback
| feedback | Another feedback | C1 | feedback1 | 1 | 1 | 0 |
When I log in as "manager"
And I am on site homepage
And I am on course page "Course feedback"
And I follow "Course feedback"
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
And I add a "Information" question to the feedback with:
| Question | this is an information question |
@ -57,17 +57,14 @@ Feature: Mapping courses in a feedback
And I am on course page "Course 1"
And I turn editing mode on
And I add the "Feedback" block
And I am on site homepage
And I am on course page "Course 2"
And I add the "Feedback" block
And I am on site homepage
And I am on course page "Course 3"
And I add the "Feedback" block
And I log out
Scenario: Course feedback can not be mapped
And I log in as "manager"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Another feedback"
And I should not see "Mapped courses"
@ -77,7 +74,7 @@ Feature: Mapping courses in a feedback
Scenario: Site feedback is not mapped to any course
And I log in as "user1"
And I am on site homepage
And I am on course page "Course feedback"
And I follow "Course feedback"
And I follow "Answer the questions..."
And I should see "Acceptance test site" in the ".feedback_form" "css_element"
And I set the following fields to these values:
@ -85,7 +82,7 @@ Feature: Mapping courses in a feedback
| this is a simple multiple choice | option d |
And I press "Submit your answers"
And I press "Continue"
And I am on course page "Course 1"
And I follow "Course 1"
And I click on "Course feedback" "link" in the "Feedback" "block"
And I follow "Answer the questions..."
And I should not see "Acceptance test site" in the ".feedback_form" "css_element"
@ -138,7 +135,7 @@ Feature: Mapping courses in a feedback
Scenario: Site feedback is mapped to courses
And I log in as "manager"
And I am on site homepage
And I am on course page "Course feedback"
And I follow "Course feedback"
And I follow "Map feedback to courses"
And I set the field "Courses" to "Course 2"
And I set the field "Courses" to "Course 3"
@ -147,16 +144,14 @@ Feature: Mapping courses in a feedback
And I log in as "user1"
And I am on site homepage
And I am on course page "Course feedback"
And I follow "Course feedback"
And I should see "You can only access this feedback from a course"
And I should not see "Answer the questions..."
And I am on site homepage
And I am on course page "Course 1"
And "Feedback" "block" should not exist
And I should not see "Course feedback"
And I am on site homepage
And I am on course page "Course 2"
And I click on "Course feedback" "link" in the "Feedback" "block"
And I follow "Answer the questions..."
@ -196,7 +191,7 @@ Feature: Mapping courses in a feedback
And I log out
And I log in as "manager"
And I am on site homepage
And I am on course page "Course feedback"
And I follow "Course feedback"
And I navigate to "Analysis" in current page administration
And I should see "All courses" in the "#feedback_course_filter [data-fieldtype=autocomplete] .form-autocomplete-selection [role=listitem]" "css_element"
And I show chart data for the "multichoicerated" feedback

View file

@ -65,7 +65,6 @@ Feature: Saving, using and deleting feedback templates
And I follow "Edit questions"
And I should see "this is a multiple choice 1"
# Make sure this template is not available in another course
And I am on site homepage
And I am on course page "Course 2"
And I follow "Learning experience course 2"
And I follow "Templates"
@ -111,7 +110,6 @@ Feature: Saving, using and deleting feedback templates
Scenario: Manager can save template as public and it will be available in any course
When I log in as "manager"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Learning experience course 1"
And I follow "Templates"
@ -134,7 +132,6 @@ Feature: Saving, using and deleting feedback templates
Scenario: Teacher can delete course templates but can not delete public templates
# Save feedback as both public and course template
When I log in as "manager"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Learning experience course 1"
And I follow "Templates"
@ -166,7 +163,6 @@ Feature: Saving, using and deleting feedback templates
Scenario: Manager can delete both course and public templates
# Save feedback as both public and course template
When I log in as "manager"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Learning experience course 1"
And I click on "Templates" "link" in the "[role=main]" "css_element"

View file

@ -15,7 +15,6 @@ Feature: Students can choose from 4 discussion display options and their choice
| user | course | role |
| student1 | C1 | student |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I add a "Forum" to section "1" and I fill the form with:

View file

@ -15,7 +15,6 @@ Feature: A user can control their own subscription preferences for a discussion
| user | course | role |
| student1 | C1 | student |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
@ -135,7 +134,6 @@ Feature: A user can control their own subscription preferences for a discussion
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
And I log out
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Test forum name"
And I navigate to "Edit settings" in current page administration
@ -181,7 +179,6 @@ Feature: A user can control their own subscription preferences for a discussion
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
And I log out
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I follow "Test forum name"
And I navigate to "Edit settings" in current page administration

View file

@ -47,7 +47,6 @@ Feature: Students can edit or delete their forum posts within a set time limit
And I navigate to "Security > Site policies" in site administration
And I set the field "Maximum time to edit posts" to "1 minutes"
And I press "Save changes"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I add the "Recent activity" block

View file

@ -15,7 +15,6 @@ Feature: A user can control their own subscription preferences for a forum
| user | course | role |
| student1 | C1 | student |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on

View file

@ -17,7 +17,6 @@ Feature: A user can control their default discussion subscription settings
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on

View file

@ -69,9 +69,8 @@ Feature: New discussions and discussions with recently added replies are display
| Message | Reply to the first post |
And I press "Post to forum"
And I wait to be redirected
And I am on site homepage
And I am on course page "Course 1"
And I am on course page "Course general forum"
And I follow "Course general forum"
#
# Make sure the order of the forum posts is as expected (most recently participated first).
#

View file

@ -39,7 +39,6 @@ Feature: Posting to groups in a separate group discussion when restricted to gro
| G1 | G1G2 |
| G2 | G2G1 |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I add a "Forum" to section "1" and I fill the form with:

View file

@ -17,7 +17,6 @@ Feature: Users can choose to set start and end time for display of their discuss
And I log in as "admin"
And the following config values are set as admin:
| forum_enabletimedposts | 1 |
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
And I add a "Forum" to section "1" and I fill the form with:
@ -35,7 +34,6 @@ Feature: Users can choose to set start and end time for display of their discuss
| Subject | Discussion 3 timed visible now |
| Message | Discussion contents 3, first message |
| timestart[enabled] | 1 |
And I am on site homepage
And I am on course page "Course 1"
And I follow "Test forum name"
And I should see "Discussion 2 timed"

View file

@ -17,7 +17,6 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
| student1 | C1 | student |
| student2 | C1 | student |
And I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
And I turn editing mode on
@ -81,7 +80,6 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
Scenario: Tracking forum posts forced with user tracking on
Given the following config values are set as admin:
| forum_allowforcedreadtracking | 1 |
And I am on site homepage
And I am on course page "Course 1"
Given I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |
@ -104,7 +102,6 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
Scenario: Tracking forum posts forced with user tracking off
Given the following config values are set as admin:
| forum_allowforcedreadtracking | 1 |
And I am on site homepage
And I am on course page "Course 1"
Given I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |
@ -127,7 +124,6 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
Scenario: Tracking forum posts forced (with force disabled) with user tracking on
Given the following config values are set as admin:
| forum_allowforcedreadtracking | 1 |
And I am on site homepage
And I am on course page "Course 1"
Given I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |
@ -158,7 +154,6 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
Scenario: Tracking forum posts forced (with force disabled) with user tracking off
Given the following config values are set as admin:
| forum_allowforcedreadtracking | 1 |
And I am on site homepage
And I am on course page "Course 1"
Given I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |