1 |
efrain |
1 |
@tool_behat
|
|
|
2 |
Feature: Verify that the inplace editable field works as expected
|
|
|
3 |
In order to use behat step definitions
|
|
|
4 |
As a test write
|
|
|
5 |
I need to ensure that the inplace editable works in forms
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "course" exists:
|
|
|
9 |
| fullname | Course 1 |
|
|
|
10 |
| shortname | C1 |
|
|
|
11 |
And the following "activities" exist:
|
|
|
12 |
| activity | course | name | idnumber |
|
|
|
13 |
| forum | C1 | My first forum | forum1 |
|
|
|
14 |
| assign | C1 | My first assignment | assign1 |
|
|
|
15 |
| quiz | C1 | My first quiz | quiz1 |
|
|
|
16 |
And I log in as "admin"
|
|
|
17 |
And I am on "Course 1" course homepage with editing mode on
|
|
|
18 |
|
|
|
19 |
@javascript
|
|
|
20 |
Scenario: Using an inplace editable updates the name of an activity
|
|
|
21 |
When I set the field "Edit title" in the "My first assignment" "activity" to "Coursework submission"
|
|
|
22 |
Then I should see "Coursework submission"
|
|
|
23 |
And I should not see "My first assignment"
|
|
|
24 |
But I should see "My first forum"
|
|
|
25 |
And I should see "My first quiz"
|
|
|
26 |
And I set the field "Edit title" in the "Coursework submission" "activity" to "My first assignment"
|
|
|
27 |
And I should not see "Coursework submission"
|
|
|
28 |
But I should see "My first assignment"
|
|
|
29 |
And I should see "My first forum"
|
|
|
30 |
And I should see "My first quiz"
|