1441 |
ariadna |
1 |
@core @javascript
|
|
|
2 |
Feature: hide_if functionality in admin settings
|
|
|
3 |
For admin settings using hide_if functionality
|
|
|
4 |
As a user
|
|
|
5 |
If I trigger the hide_if condition then the admin setting will be hidden
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
|
|
|
10 |
Scenario Outline: Admin settings are hidden when hide_if conditions dependent on a configmultiselect setting are met
|
|
|
11 |
Given I am on fixture page "/lib/tests/behat/fixtures/multiselect_hide_if_admin_settingspage.php"
|
|
|
12 |
When I set the field "s__multiselect1[]" to "<selection>"
|
|
|
13 |
Then I <shouldSeeEq_> see "Hide if selection 'eq' []"
|
|
|
14 |
And I <shouldSeeIn_> see "Hide if selection 'in' []"
|
|
|
15 |
And I <shouldSeeNeq_> see "Hide if selection 'neq' []"
|
|
|
16 |
And I <shouldSeeEq1> see "Hide if selection 'eq' ['1']"
|
|
|
17 |
And I <shouldSeeIn1> see "Hide if selection 'in' ['1']"
|
|
|
18 |
And I <shouldSeeNeq1> see "Hide if selection 'neq' ['1']"
|
|
|
19 |
And I <shouldSeeEq12> see "Hide if selection 'eq' ['1', '2']"
|
|
|
20 |
And I <shouldSeeIn12> see "Hide if selection 'in' ['1', '2']"
|
|
|
21 |
And I <shouldSeeNeq12> see "Hide if selection 'neq' ['1', '2']"
|
|
|
22 |
|
|
|
23 |
Examples:
|
|
|
24 |
| selection | shouldSeeEq_ | shouldSeeIn_ | shouldSeeNeq_ | shouldSeeEq1 | shouldSeeIn1 | shouldSeeNeq1 | shouldSeeEq12 | shouldSeeIn12 | shouldSeeNeq12 |
|
|
|
25 |
| | should not | should not | should | should | should | should not | should | should | should not |
|
|
|
26 |
| Option 1 | should | should | should not | should not | should not | should | should | should not | should not |
|
|
|
27 |
| Option 2 | should | should | should not | should | should | should not | should | should not | should not |
|
|
|
28 |
| Option 1, Option 2 | should | should | should not | should | should | should not | should not | should not | should |
|