Línea 42... |
Línea 42... |
42 |
When I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
|
42 |
When I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
|
Línea 43... |
Línea 43... |
43 |
|
43 |
|
44 |
# Check the icon is there (it should be a Hide icon, meaning is currently visible).
|
44 |
# Check the icon is there (it should be a Hide icon, meaning is currently visible).
|
Línea 45... |
Línea 45... |
45 |
Then "Hide" "icon" should exist in the "Restriction by date" "table_row"
|
45 |
Then "Hide" "icon" should exist in the "Restriction by date" "table_row"
|
46 |
|
46 |
|
47 |
# Click the icon. It should toggle to hidden (title=Show).
|
47 |
# Click the icon. It should toggle to disabled.
|
Línea 48... |
Línea 48... |
48 |
And I click on "Hide" "icon" in the "Restriction by date" "table_row"
|
48 |
And I toggle the "Disable Restriction by date" admin switch "off"
|
49 |
And "Show" "icon" should exist in the "Restriction by date" "table_row"
|
49 |
And I should see "Restriction by date disabled."
|
50 |
|
50 |
|
Línea 51... |
Línea 51... |
51 |
# Toggle it back to visible (title=Hide).
|
51 |
# Toggle it back to visible (title=Hide).
|
52 |
And I click on "Show" "icon" in the "Restriction by date" "table_row"
|
52 |
And I toggle the "Enable Restriction by date" admin switch "on"
|
53 |
And "Hide" "icon" should exist in the "Restriction by date" "table_row"
|
53 |
And I should see "Restriction by date enabled."
|
54 |
|
54 |
|
55 |
# OK, toggling works. Set the grade one to Hide and we'll go see if it actually worked.
|
55 |
# OK, toggling works. Set the grade one to Hide and we'll go see if it actually worked.
|
56 |
And I click on "Hide" "icon" in the "Restriction by grade" "table_row"
|
56 |
And I toggle the "Disable Restriction by grade" admin switch "off"
|
57 |
And I am on the "P1" "page activity editing" page
|
57 |
And I am on the "P1" "page activity editing" page
|