MDL-53564 behat: Fixed xpath to find social activity block
[moodle.git] / blocks / site_main_menu / tests / behat / edit_activities.feature
CommitLineData
f59f89b4
MG
1@block @block_main_menu
2Feature: Edit activities in main menu block
3 In order to use main menu block
4 As an admin
5 I need to add and edit activities there
6
7 @javascript
8 Scenario: Edit name of acitivity in-place in site main menu block
9 Given I log in as "admin"
10 And I am on site homepage
11 And I navigate to "Turn editing on" node in "Front page settings"
12 When I add a "Forum" to section "0" and I fill the form with:
13 | Forum name | My forum name |
d242d4eb 14 And I click on "Edit title" "link" in the "//div[contains(@class,'block_site_main_menu')]//li[contains(.,'My forum name')]" "xpath_element"
f59f89b4
MG
15 And I set the field "New name for activity My forum name" to "New forum name"
16 And I press key "13" in the field "New name for activity My forum name"
17 Then I should not see "My forum name"
18 And I should see "New forum name"
19 And I follow "New forum name"
20 And I should not see "My forum name"
21 And I should see "New forum name"