Issue #54 - Fixed property names and related tests.

This commit is contained in:
Daniel Thee Roperto
2016-09-25 00:51:33 +10:00
parent fbef0f52cf
commit 5b964fd29f
6 changed files with 38 additions and 35 deletions

View File

@@ -7,30 +7,33 @@ Feature: Test changing the default settings.
Rules:
- Times should be expressed in minutes.
Background:
Given the authentication plugin "outage" is enabled
And I am an administrator
Scenario: Check if I can save the default settings.
When I navigate to "Default Settings" node in "Site administration > Plugins > Authentication > Outage manager"
And I set the following fields to these values:
| s_auth_outage_default_autostart | 1 |
| s_auth_outage_default_warning_duration | 15 |
| s_auth_outage_default_duration | 30 |
# | s_auth_outage_default_Title | My Behat Outage {start} |
# | s_auth_outage_default_description | My outage <b>{stop}</b>. |
| s_auth_outage_css | /* Some CSS. */ |
| s_auth_outage_default_autostart | 1 |
| s_auth_outage_default_warning_duration | 15 |
| s_auth_outage_default_duration | 30 |
| s_auth_outage_default_title | My Behat Outage {start} |
| s_auth_outage_default_description | My outage <b>{stop}</b>. |
| s_auth_outage_css | /* Some CSS. */ |
And I press "Save changes"
Then I should see "Changes saved"
When I visit the Create Outage Page
Then the following fields match these values:
# | autostart | 1 |
| warningduration[number] | 15 |
| warningduration[timeunit] | 60 |
| outageduration[number] | 30 |
| outageduration[timeunit] | 60 |
# | title | My Behat Outage {start} |
# | description[text] | My outage <b>{stop}</b>. |
| autostart | 1 |
| warningduration[number] | 15 |
| warningduration[timeunit] | 60 |
| outageduration[number] | 30 |
| outageduration[timeunit] | 60 |
| title | My Behat Outage {start} |
| description[text] | My outage <b>{stop}</b>. |
Scenario Outline: Check if I can save invalid values for default settings.
When I navigate to "Default Settings" node in "Site administration > Plugins > Authentication > Outage manager"
@@ -38,8 +41,8 @@ Feature: Test changing the default settings.
| s_auth_outage_default_autostart | 1 |
| s_auth_outage_default_warning_duration | <warning> |
| s_auth_outage_default_duration | <duration> |
# | s_auth_outage_default_Title | <title> |
# | s_auth_outage_default_description | <description> |
| s_auth_outage_default_title | <title> |
| s_auth_outage_default_description | <description> |
| s_auth_outage_css | /* Some CSS. */ |
And I press "Save changes"
Then I should <seeornot> "Changes saved"