mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36: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
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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).
|
||||
#
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue