mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +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"
|
||||
|
|
|
@ -39,7 +39,6 @@ Feature: display_availability
|
|||
Scenario: Activity availability display
|
||||
# Set up.
|
||||
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
|
||||
|
||||
|
@ -102,7 +101,6 @@ Feature: display_availability
|
|||
# Change to student view.
|
||||
Given 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 display still there but should be dimmed and not a link.
|
||||
|
@ -123,7 +121,6 @@ Feature: display_availability
|
|||
Scenario: Section availability display
|
||||
# Set up.
|
||||
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
|
||||
|
||||
|
@ -147,7 +144,6 @@ Feature: display_availability
|
|||
And I press "Save changes"
|
||||
|
||||
# This is necessary because otherwise it fails in Chrome, see MDL-44959
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# Add Pages to each section.
|
||||
|
@ -172,7 +168,6 @@ Feature: display_availability
|
|||
# Change to student view.
|
||||
Given I log out
|
||||
And I log in as "student1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
|
||||
# The contents of both sections should be hidden.
|
||||
|
|
|
@ -32,7 +32,6 @@ Feature: edit_availability
|
|||
Given the following config values are set as admin:
|
||||
| enableavailability | 0 |
|
||||
When 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
|
||||
And I add a "Page" to section "1"
|
||||
|
@ -45,7 +44,6 @@ Feature: edit_availability
|
|||
And the following config values are set as admin:
|
||||
| enableavailability | 1 |
|
||||
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I add a "Page" to section "1"
|
||||
Then "Restrict access" "fieldset" should exist
|
||||
|
@ -149,7 +147,6 @@ Feature: edit_availability
|
|||
Scenario: Edit availability using settings in section form
|
||||
# Set up.
|
||||
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
|
||||
|
||||
|
@ -171,7 +168,6 @@ Feature: edit_availability
|
|||
Given the following config values are set as admin:
|
||||
| enableavailability | 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
|
||||
And I add a "Forum" to section "1"
|
||||
|
@ -185,7 +181,6 @@ Feature: edit_availability
|
|||
| name | course | idnumber |
|
||||
| GX1 | C1 | GXI1 |
|
||||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue