mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Behat will fail with Moodle 27, 28, 29 because the local/outage plugin is required for those versions. Removed those versions from behat tests.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@dev @auth @auth_outage @javascript
|
||||
@auth @auth_outage @javascript
|
||||
Feature: Manage outages
|
||||
In order to manage outages
|
||||
As an admin
|
||||
@@ -18,54 +18,54 @@ Feature: Manage outages
|
||||
And I wait "1" seconds
|
||||
|
||||
|
||||
# Scenario: Check if I can navigate to management page.
|
||||
# Given I am on homepage
|
||||
# When I navigate to "Manage" node in "Site administration > Plugins > Authentication > Outage manager"
|
||||
# Then I should see "Planned outages"
|
||||
# And I should see "No outages found." in the "#section_planned_outages" "css_element"
|
||||
# And I should see "Outage history"
|
||||
# And I should see "No outages found." in the "#section_outage_history" "css_element"
|
||||
#
|
||||
#
|
||||
# Scenario Outline: Planned outages should include all outages not finished or stopped.
|
||||
# Given there is a "<type>" outage
|
||||
# When I am on Outage Management Page
|
||||
# Then I should see "Example of <type> outage" in the "#section_<section>" "css_element"
|
||||
#
|
||||
# Examples:
|
||||
# | type | section |
|
||||
# | waiting | planned_outages |
|
||||
# | warning | planned_outages |
|
||||
# | ongoing | planned_outages |
|
||||
# | finished | outage_history |
|
||||
# | stopped | outage_history |
|
||||
#
|
||||
#
|
||||
# Scenario Outline: Planned and history outages have different actions.
|
||||
# Given there is a "<type>" outage
|
||||
# When I am on Outage Management Page
|
||||
# Then I should see "Example of <type> outage"
|
||||
# And I should <view> the action "View"
|
||||
# And I should <clone> the action "Clone"
|
||||
# And I should <edit> the action "Edit"
|
||||
# And I should <delete> the action "Delete"
|
||||
# And I should <finish> the action "Finish"
|
||||
#
|
||||
# Examples:
|
||||
# | type | view | clone | edit | delete | finish |
|
||||
# | waiting | see | see | see | see | not see |
|
||||
# | warning | see | see | see | see | not see |
|
||||
# | ongoing | see | see | see | see | see |
|
||||
# | finished | see | see | not see | not see | not see |
|
||||
# | stopped | see | see | not see | not see | not see |
|
||||
#
|
||||
#
|
||||
# Scenario: Create an outage using defaults.
|
||||
# Given I am on Outage Management Page
|
||||
# When I press "Create outage"
|
||||
# And I press "Save changes"
|
||||
# And I should not see "No outages found." in the "#section_planned_outages" "css_element"
|
||||
# And I should see "No outages found." in the "#section_outage_history" "css_element"
|
||||
Scenario: Check if I can navigate to management page.
|
||||
Given I am on homepage
|
||||
When I navigate to "Manage" node in "Site administration > Plugins > Authentication > Outage manager"
|
||||
Then I should see "Planned outages"
|
||||
And I should see "No outages found." in the "#section_planned_outages" "css_element"
|
||||
And I should see "Outage history"
|
||||
And I should see "No outages found." in the "#section_outage_history" "css_element"
|
||||
|
||||
|
||||
Scenario Outline: Planned outages should include all outages not finished or stopped.
|
||||
Given there is a "<type>" outage
|
||||
When I am on Outage Management Page
|
||||
Then I should see "Example of <type> outage" in the "#section_<section>" "css_element"
|
||||
|
||||
Examples:
|
||||
| type | section |
|
||||
| waiting | planned_outages |
|
||||
| warning | planned_outages |
|
||||
| ongoing | planned_outages |
|
||||
| finished | outage_history |
|
||||
| stopped | outage_history |
|
||||
|
||||
|
||||
Scenario Outline: Planned and history outages have different actions.
|
||||
Given there is a "<type>" outage
|
||||
When I am on Outage Management Page
|
||||
Then I should see "Example of <type> outage"
|
||||
And I should <view> the action "View"
|
||||
And I should <clone> the action "Clone"
|
||||
And I should <edit> the action "Edit"
|
||||
And I should <delete> the action "Delete"
|
||||
And I should <finish> the action "Finish"
|
||||
|
||||
Examples:
|
||||
| type | view | clone | edit | delete | finish |
|
||||
| waiting | see | see | see | see | not see |
|
||||
| warning | see | see | see | see | not see |
|
||||
| ongoing | see | see | see | see | see |
|
||||
| finished | see | see | not see | not see | not see |
|
||||
| stopped | see | see | not see | not see | not see |
|
||||
|
||||
|
||||
Scenario: Create an outage using defaults.
|
||||
Given I am on Outage Management Page
|
||||
When I press "Create outage"
|
||||
And I press "Save changes"
|
||||
And I should not see "No outages found." in the "#section_planned_outages" "css_element"
|
||||
And I should see "No outages found." in the "#section_outage_history" "css_element"
|
||||
|
||||
|
||||
Scenario: View an outage which should open in a new window or tab.
|
||||
|
||||
Reference in New Issue
Block a user