-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathUse_dev_menu.feature
44 lines (37 loc) · 1.91 KB
/
Use_dev_menu.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@ibf-portal-admin-user
Feature: Use dev menu section
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: 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: 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 "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'