mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -28,13 +28,12 @@ Feature: Add a new custom file type
|
|||
And I should see "application/x-moodle-rules"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add a "File" to section "1" and I fill the form with:
|
||||
| Name | Test file |
|
||||
| Select files | files/tests/fixtures/custom_filetype.mdlr |
|
||||
| Show type | 1 |
|
||||
| Display resource description | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "Test file"
|
||||
And I should see "Moodle rules" in the "span.resourcelinkdetails" "css_element"
|
||||
|
|
|
@ -13,7 +13,7 @@ Feature: Course files
|
|||
| legacyfilesinnewcourses | 1 |
|
||||
| legacyfilesaddallowed | 1 |
|
||||
When I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then "Legacy course files" "link" should exist in current page administration
|
||||
And I navigate to "Legacy course files" node in "Course administration"
|
||||
And I press "Edit legacy course files"
|
||||
|
@ -29,7 +29,7 @@ Feature: Course files
|
|||
| legacyfilesinnewcourses | 1 |
|
||||
| legacyfilesaddallowed | 0 |
|
||||
When I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then "Legacy course files" "link" should exist in current page administration
|
||||
And I navigate to "Legacy course files" node in "Course administration"
|
||||
And I press "Edit legacy course files"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue