mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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,8 +28,7 @@ Feature: Add tools
|
|||
@javascript
|
||||
Scenario: Add a tool via the activity picker
|
||||
Given 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
|
||||
And I add a "Teaching Tool 1" to section "1"
|
||||
# For tool that does not support Content-Item message type, the Select content button must be disabled.
|
||||
And I set the field "Activity name" to "Test tool activity 1"
|
||||
|
|
|
@ -18,8 +18,7 @@ Feature: Add preconfigured tools via teacher interface
|
|||
@javascript
|
||||
Scenario: Add a tool from a cartridge
|
||||
When 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
|
||||
And I add a "External tool" to section "1" and I fill the form with:
|
||||
| Activity name | Test tool activity 1 |
|
||||
And I open "Test tool activity 1" actions menu
|
||||
|
@ -37,8 +36,7 @@ Feature: Add preconfigured tools via teacher interface
|
|||
@javascript @_switch_window
|
||||
Scenario: Add a preconfigured tool from a cartridge
|
||||
When 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
|
||||
And I add a "External tool" to section "1" and I fill the form with:
|
||||
| Activity name | Test tool activity 1 |
|
||||
And I open "Test tool activity 1" actions menu
|
||||
|
@ -61,8 +59,7 @@ Feature: Add preconfigured tools via teacher interface
|
|||
@javascript @_switch_window
|
||||
Scenario: Add and use a preconfigured tool
|
||||
When 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
|
||||
And I add a "External tool" to section "1" and I fill the form with:
|
||||
| Activity name | Test tool activity 1 |
|
||||
And I open "Test tool activity 1" actions menu
|
||||
|
|
|
@ -29,16 +29,14 @@ Feature: Content-Item support
|
|||
@javascript
|
||||
Scenario: Tool that supports Content-Item Message type should be able to configure a tool via the Select content button
|
||||
When 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
|
||||
And I add a "Teaching Tool 1" to section "1"
|
||||
Then the "Select content" "button" should be enabled
|
||||
|
||||
@javascript
|
||||
Scenario: Editing a tool's settings that was configured from a preconfigured tool that supports Content-Item.
|
||||
When 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
|
||||
And I add a "Teaching Tool 1" to section "1"
|
||||
And the "Select content" "button" should be enabled
|
||||
And I set the field "Activity name" to "Test tool activity 1"
|
||||
|
@ -62,8 +60,7 @@ Feature: Content-Item support
|
|||
And I press "Save changes"
|
||||
And I log out
|
||||
When 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
|
||||
And I add a "External tool" to section "1"
|
||||
# On load with no preconfigured tool selected: Select content button - disabled, Tool URL - enabled.
|
||||
And the field "Preconfigured tool" matches value "Automatic, based on tool URL"
|
||||
|
@ -89,8 +86,7 @@ Feature: Content-Item support
|
|||
@javascript
|
||||
Scenario: Editing a manually configured external tool
|
||||
Given 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
|
||||
And I add a "External tool" to section "1"
|
||||
And the field "Preconfigured tool" matches value "Automatic, based on tool URL"
|
||||
And I set the field "Activity name" to "Test tool activity 1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue