mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-69630 format_social: Fix behat tests
This commit is contained in:
parent
1a453e4d8d
commit
03838167cb
1 changed files with 9 additions and 4 deletions
|
@ -16,14 +16,15 @@ Feature: Edit activities in social activities block
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| user1 | C1 | editingteacher |
|
| user1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And the following "activities" exist:
|
|
||||||
| activity | course | idnumber | name |
|
|
||||||
| forum | C1 | forum | My forum name |
|
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Edit name of acitivity in-place in social activities block
|
Scenario: Edit name of activity in-place in social activities block
|
||||||
Given I log in as "user1"
|
Given I log in as "user1"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
|
And I press "Add an activity or resource"
|
||||||
|
And I click on "Add a new Forum" "link" in the "Add an activity or resource" "dialogue"
|
||||||
|
And I set the field "Forum name" to "My forum name"
|
||||||
|
And I press "Save and return to course"
|
||||||
And I click on "Edit title" "link" in the "My forum name" activity in social activities block
|
And I click on "Edit title" "link" in the "My forum name" activity in social activities block
|
||||||
And I set the field "New name for activity My forum name" to "New forum name"
|
And I set the field "New name for activity My forum name" to "New forum name"
|
||||||
And I press key "13" in the field "New name for activity My forum name"
|
And I press key "13" in the field "New name for activity My forum name"
|
||||||
|
@ -42,6 +43,10 @@ Feature: Edit activities in social activities block
|
||||||
And I log in as "user1"
|
And I log in as "user1"
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
And I am on "Course 1" course homepage with editing mode on
|
||||||
And I add the "Recent activity" block
|
And I add the "Recent activity" block
|
||||||
|
And I press "Add an activity or resource"
|
||||||
|
And I click on "Add a new Forum" "link" in the "Add an activity or resource" "dialogue"
|
||||||
|
And I set the field "Forum name" to "My forum name"
|
||||||
|
And I press "Save and return to course"
|
||||||
And "My forum name" activity in social activities block should have "Hide" editing icon
|
And "My forum name" activity in social activities block should have "Hide" editing icon
|
||||||
And "My forum name" activity in social activities block should not have "Show" editing icon
|
And "My forum name" activity in social activities block should not have "Show" editing icon
|
||||||
And "My forum name" activity in social activities block should not have "Make available" editing icon
|
And "My forum name" activity in social activities block should not have "Make available" editing icon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue