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

@ -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"