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

@ -40,7 +40,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
And I follow "Blog entries"
@ -71,7 +70,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
And I follow "Add an entry about this Assignment"
@ -82,7 +80,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
When I follow "View my entries about this Assignment"
@ -114,7 +111,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
And I follow "Add an entry about this Assignment"
@ -125,7 +121,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
When I follow "View all entries about this Assignment"
@ -157,7 +152,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
And I follow "Add an entry about this Assignment"
@ -168,7 +162,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
When I follow "Blog entries"
@ -200,7 +193,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
And I follow "Test assignment 1"
And I follow "Add an entry about this Assignment"

View file

@ -34,7 +34,6 @@ Feature: Students can use block blog menu in a course
And I press "Save changes"
Then I should see "S1 First Blog"
And I should see "This is my awesome blog!"
And I follow "Dashboard"
And I am on course page "Course 1"
And I follow "Blog entries"
And I should see "S1 First Blog"
@ -62,7 +61,6 @@ Feature: Students can use block blog menu in a course
And I should see "S2 Second Blog"
And I should see "My unrelated blog!"
And I should not see "Associated Course: C1"
And I follow "Dashboard"
And I am on course page "Course 1"
And I follow "Add an entry about this course"
And I set the following fields to these values:
@ -72,7 +70,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
When I follow "View my entries about this course"
Then I should see "S2 First Blog"
@ -101,7 +98,6 @@ Feature: Students can use block blog menu in a course
And I should see "S2 Second Blog"
And I should see "My unrelated blog!"
And I should not see "Associated Course: C1"
And I follow "Dashboard"
And I am on course page "Course 1"
And I follow "Add an entry about this course"
And I set the following fields to these values:
@ -111,7 +107,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
When I follow "View all entries for this course"
Then I should see "S1 First Blog"
@ -140,7 +135,6 @@ Feature: Students can use block blog menu in a course
And I should see "S2 Second Blog"
And I should see "My unrelated blog!"
And I should not see "Associated Course: C1"
And I follow "Dashboard"
And I am on course page "Course 1"
And I follow "Add an entry about this course"
And I set the following fields to these values:
@ -150,7 +144,6 @@ 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 follow "Dashboard"
And I am on course page "Course 1"
When I follow "Blog entries"
Then I should see "S2 First Blog"
@ -179,7 +172,6 @@ Feature: Students can use block blog menu in a course
And I should see "S2 Second Blog"
And I should see "My unrelated blog!"
And I should not see "Associated Course: C1"
And I follow "Dashboard"
And I am on course page "Course 1"
And I follow "Add an entry about this course"
And I set the following fields to these values:

View file

@ -66,7 +66,6 @@ Feature: Enable Block Completion in a course using activity completion
Then I should see "Status: Pending" in the "Course completion status" "block"
And I should see "0 of 1" in the "Activity completion" "table_row"
And I trigger cron
And I am on site homepage
And I am on course page "Course 1"
And I should see "1 of 1" in the "Activity completion" "table_row"
And I follow "More details"

View file

@ -39,7 +39,6 @@ Feature: Enable Block Completion in a course using manual self completion
# should be created before the task runs.
And I wait "1" seconds
And I run the scheduled task "core\task\completion_regular_task"
And I am on site homepage
And I am on course page "Course 1"
Then I should see "Status: Complete" in the "Course completion status" "block"
And I should see "Yes" in the "Self completion" "table_row"

View file

@ -23,7 +23,6 @@ Feature: Random glossary entry block linking to global glossary
Scenario: View random (last) entry in the global glossary
When I log in as "admin"
And I am on site homepage
And I am on course page "Course 2"
And I follow "Tips and Tricks"
And I press "Add a new entry"
@ -68,13 +67,11 @@ Feature: Random glossary entry block linking to global glossary
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 2"
And I follow "Tips and Tricks"
And I follow "Edit settings"
And I set the field "globalglossary" to "0"
And I press "Save and return to course"
And I am on site homepage
And I am on course page "Course 1"
Then I should see "Please configure this block using the edit icon." in the "Tip of the day" "block"
And I log out

View file

@ -15,7 +15,6 @@ Feature: People Block used in a course
| user | course | role |
| student1 | C101 | 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 the "People" block

View file

@ -17,7 +17,6 @@ Feature: Add blocks
| 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
When I add the "Blog menu" block

View file

@ -9,7 +9,6 @@ Feature: Block visibility
| fullname | shortname | category |
| Course 1 | C1 | 0 |
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

@ -28,7 +28,6 @@ Feature: Allowed blocks controls
Given I log in as "admin"
And I set the following system permissions of "Teacher" role:
| block/activity_modules:addinstance | Prohibit |
And I am on site homepage
And I am on course page "Course 1"
And I navigate to "Users > Permissions" in current page administration
And I override the system permissions of "Teacher" role with:

View file

@ -9,7 +9,6 @@ Feature: The context of a block can always be returned to it's original state.
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I am on site homepage
When I am on course page "Course 1"
And I follow "Turn editing on"
And I add the "Tags" block