MDL-43738 behat: Updating steps definitions and deprecating methods
[moodle.git] / admin / tool / behat / tests / behat / manipulate_forms.feature
CommitLineData
550d842e 1@tool @tool_behat
bf4fa299
DM
2Feature: Forms manipulation
3 In order to interact with Moodle
4 As a user
5 I need to set forms values
6
7 @javascript
8 Scenario: Basic forms manipulation
9 Given I log in as "admin"
10 And I follow "Admin User"
11 And I follow "Edit profile"
12 When I fill in "First name" with "Field value"
3d27180e 13 And I select "Plain text area" from "Text editor"
bf4fa299
DM
14 And I check "Unmask"
15 Then the "First name" field should match "Field value" value
3d27180e 16 And the "Text editor" select box should contain "Plain text area"
bf4fa299
DM
17 And the "Unmask" checkbox should be checked
18 And I uncheck "Unmask"
19 And the "Unmask" checkbox should not be checked
20 And I press "Update profile"
2b6287b7
DM
21
22 @javascript
23 Scenario: Expand all fieldsets and advanced elements
24 Given the following "courses" exists:
25 | fullname | shortname | category |
26 | Course 1 | C1 | 0 |
27 And I log in as "admin"
28 And I follow "Course 1"
371b7fc3 29 And I turn editing mode on
5bc7cd92 30 And I add a "Quiz" to section "1"
2b6287b7 31 When I expand all fieldsets
5bc7cd92 32 Then I should see "Close the quiz"
371b7fc3
DM
33 And I should see "Group mode"
34 And I should see "Grouping"
5df9e40c 35 And I should not see "Show more..." in the "region-main" "region"
2b6287b7 36 And I should see "Show less..."