-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1484 from rodekruis/feat.floods-leadtime-event
fix: new mock setup floods AB#26812
- Loading branch information
Showing
446 changed files
with
161,690 additions
and
1,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
@ibf-portal-admin-user | ||
Feature: Use dev menu section | ||
|
||
Background: | ||
Given a logged-in "admin" user on the dashboard page | ||
Background: | ||
Given a logged-in "admin" user on the dashboard page | ||
|
||
Scenario: Open and view Dev Menu | ||
When the user clicks on menu-icon in the top left of Dashboard page | ||
Then the menu section open up | ||
And it contains a menu list | ||
And the menu list contains 'Version', 'Country', 'Load Mock Scenario', 'Activation Report' | ||
Scenario: Open and view Dev Menu | ||
When the user clicks on menu-icon in the top left of Dashboard page | ||
Then the menu section open up | ||
And it contains a menu list | ||
And the menu list contains 'Version', 'Country', 'Load Mock Scenario', 'Activation Report' | ||
|
||
Scenario: Click on Version | ||
When the user clicks "Version" | ||
Then a new tab opens on the IBF Github repository, specifically to the version tag | ||
Scenario: Click on Version | ||
When the user clicks "Version" | ||
Then a new tab opens on the IBF Github repository, specifically to the version tag | ||
|
||
Scenario: Switch Country | ||
When the user clicks "country" dropdown of menu section | ||
Then the Country's dropdown section open up | ||
And it contains list of different countries with radio button | ||
And the user select any of the country from the list | ||
When the user selects a country | ||
Then the Dashboard page switches to that country | ||
Scenario: Switch Country | ||
When the user clicks "country" dropdown of menu section | ||
Then the Country's dropdown section open up | ||
And it contains list of different countries with radio button | ||
And the user select any of the country from the list | ||
When the user selects a country | ||
Then the Dashboard page switches to that country | ||
|
||
Scenario: View Load Mock Data popup | ||
When the user clicks on "Load Mock Scenario" from menu | ||
Then the 'Load Mock Scenario' popup open up | ||
And it generates a question whether the user wants to mock the situation for selected country | ||
And it contains 3 buttons "cancel", "Old event", "No Trigger", "Trigger" buttons | ||
And it ask user to 'enter the secret' to switch to mock mode | ||
Scenario: View Load Mock Data popup | ||
When the user clicks on "Load Mock Scenario" from menu | ||
Then the 'Load Mock Scenario' popup open up | ||
And it generates a question whether the user wants to mock the situation for selected country | ||
And it contains 3 buttons "cancel", "No Trigger", "Trigger" buttons | ||
And it ask user to 'enter the secret' to switch to mock mode | ||
|
||
Scenario: Load mock data successfully | ||
Given the user has opened the mock data popup | ||
And the user has filled in the correct secret | ||
And clicks "Old event" or "No Trigger" or "Trigger" | ||
Then the mock data is loaded in the back-end | ||
And it appears also in the dashboard | ||
And the mock data popup closes | ||
Scenario: Load mock data unsuccessfully | ||
Given the user has opened the mock data popup | ||
And the user has filled in an incorrect secret | ||
And clicks "Old event" or "No Trigger" or "Trigger" | ||
Then a message appears that says 'Failed to set mock scenario' | ||
Scenario: Load mock data successfully | ||
Given the user has opened the mock data popup | ||
And the user has filled in the correct secret | ||
And clicks "No Trigger" or "Trigger" | ||
Then the mock data is loaded in the back-end | ||
And it appears also in the dashboard | ||
And the mock data popup closes | ||
|
||
Scenario: Load mock data unsuccessfully | ||
Given the user has opened the mock data popup | ||
And the user has filled in an incorrect secret | ||
And clicks "No Trigger" or "Trigger" | ||
Then a message appears that says 'Failed to set mock scenario' |
Oops, something went wrong.