mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
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:
parent
c987d1b2ef
commit
93be3f730c
60 changed files with 7 additions and 162 deletions
|
@ -21,7 +21,6 @@ Feature: availability_completion
|
|||
Scenario: Test condition
|
||||
# Basic setup.
|
||||
Given I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -48,7 +47,6 @@ Feature: availability_completion
|
|||
# Log back in as student.
|
||||
When I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# Page 2 should not appear yet.
|
||||
|
|
|
@ -21,7 +21,6 @@ Feature: availability_date
|
|||
Scenario: Test condition
|
||||
# Basic setup.
|
||||
Given I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -55,7 +54,6 @@ Feature: availability_date
|
|||
# Log back in as student.
|
||||
When I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# Page 1 should appear, but page 2 does not.
|
||||
|
|
|
@ -21,7 +21,6 @@ Feature: availability_grade
|
|||
Scenario: Test condition
|
||||
# Basic setup.
|
||||
Given I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -91,7 +90,6 @@ Feature: availability_grade
|
|||
# Log in as student without a grade yet.
|
||||
When I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# Do the assignment.
|
||||
|
@ -110,7 +108,6 @@ Feature: availability_grade
|
|||
# Log back in as teacher.
|
||||
When I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# Give the assignment 40%.
|
||||
|
@ -126,7 +123,6 @@ Feature: availability_grade
|
|||
# Log back in as student.
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# Check pages are visible.
|
||||
|
|
|
@ -21,7 +21,6 @@ Feature: availability_group
|
|||
Scenario: Test condition
|
||||
# Basic setup.
|
||||
Given I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -39,7 +38,6 @@ Feature: availability_group
|
|||
| G2 | C1 | GI2 |
|
||||
# This step used to be 'And I follow "C1"', but Chrome thinks the breadcrumb
|
||||
# is not clickable, so we'll go via the home page instead.
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I add a "Page" to section "1"
|
||||
And I expand all fieldsets
|
||||
|
@ -85,7 +83,6 @@ Feature: availability_group
|
|||
# Log back in as student.
|
||||
When I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# No pages should appear yet.
|
||||
|
@ -99,7 +96,6 @@ Feature: availability_group
|
|||
| student1 | GI1 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# P1 (any groups) and P2 should show but not P3.
|
||||
|
|
|
@ -27,7 +27,6 @@ Feature: availability_grouping
|
|||
Scenario: Test condition
|
||||
# Basic setup.
|
||||
Given I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -41,7 +40,6 @@ Feature: availability_grouping
|
|||
# Back to course page but add groups.
|
||||
# This step used to be 'And I follow "C1"', but Chrome thinks the breadcrumb
|
||||
# is not clickable, so we'll go via the home page instead.
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And the following "groupings" exist:
|
||||
| name | course | idnumber |
|
||||
|
@ -90,7 +88,6 @@ Feature: availability_grouping
|
|||
| grouping | group |
|
||||
| GXI1 | GI1 |
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# P1 should show but not B2.
|
||||
|
|
|
@ -21,7 +21,6 @@ Feature: availability_profile
|
|||
Scenario: Test condition
|
||||
# Basic setup.
|
||||
Given I log in as "teacher1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -56,7 +55,6 @@ Feature: availability_profile
|
|||
# Log back in as student.
|
||||
When I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# I see P1 but not P2.
|
||||
|
@ -82,7 +80,6 @@ Feature: availability_profile
|
|||
And I click on "Update profile" "button"
|
||||
|
||||
# Set Page activity which has requirement on this field.
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I add a "Page" to section "1"
|
||||
|
@ -109,6 +106,5 @@ Feature: availability_profile
|
|||
# Log out and back in as student. Should be able to see activity.
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
Then I should see "P1" in the "region-main" "region"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue