1 |
efrain |
1 |
@tool @tool_behat
|
|
|
2 |
Feature: 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 open my profile in edit mode
|
|
|
11 |
When I set the field "First name" to "Field value"
|
|
|
12 |
And I set the field "Select a country" to "Japan"
|
|
|
13 |
And I set the field "New password" to "TestPass"
|
|
|
14 |
Then the field "First name" matches value "Field value"
|
|
|
15 |
And the "Select a country" select box should contain "Japan"
|
|
|
16 |
And the field "New password" matches value "TestPass"
|
|
|
17 |
|
|
|
18 |
@javascript
|
|
|
19 |
Scenario: Expand all fieldsets and advanced elements
|
|
|
20 |
Given the following "courses" exist:
|
|
|
21 |
| fullname | shortname | category |
|
|
|
22 |
| Course 1 | C1 | 0 |
|
|
|
23 |
And the following "activities" exist:
|
|
|
24 |
| activity | course | section | name |
|
|
|
25 |
| quiz | C1 | 1 | Quiz 1 |
|
|
|
26 |
And I am on the "Quiz 1" "quiz activity editing" page logged in as admin
|
|
|
27 |
When I expand all fieldsets
|
|
|
28 |
Then I should see "Close the quiz"
|
|
|
29 |
And I should see "Group mode"
|
|
|
30 |
And I should see "ID number"
|
|
|
31 |
And I should not see "Show more..." in the "region-main" "region"
|
|
|
32 |
And I should see "Show less..."
|