-
Notifications
You must be signed in to change notification settings - Fork 15
/
Use_situational_overview_section.feature
51 lines (42 loc) · 2.48 KB
/
Use_situational_overview_section.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
45
46
47
48
49
@ibf-portal-user
Feature: Use situational overview section
Background:
Given a logged-in user on the dashboard page
Scenario: View the Situational overview section
When the user enters the dashboard page
Then the user sees the Situational overview section on the left between the Header and the Chat section
And it contains a "disaster-type selector" (see details below)
And it contains the word 'TODAY'
And it contains today's date, which is always the date of visiting the dashboard, not the last model run date
Scenario: View the Situational overview section in TRIGGERED mode
Given the dashboard is in TRIGGERED mode
When the user views the Situational overview section
Then the background color is purple
Scenario: View the Situational overview section in NON-TRIGGERED mode
Given the dashboard is in NON-TRIGGERED mode
When the user views the Situational overview section
Then the background color is navy-blue
Scenario: View Disaster-type selector with 1 "disaster-type"
Given the "country" has only 1 "disaster-type"
When the users views the disaster-type selector
Then the user sees 1 icon representing a disaster-type
And it is always "selected", meaning colored background with white icon
Scenario: View Disaster-type selector with multiple "disaster-types"
Given the "country" has more than 1 "disaster-type"
When the users views the disaster-type selector
Then the user sees 2 or more icons representing a disaster-type
And only one is "selected", meaning colored background with white icon, and text label
And the others are "unselected", meaning white background with colored icon and no text label
And the "triggered" disaster-types are purple with white
And the "non-triggered" disaster-types are navy-blue with white
And the "default selected" disaster-type is always the "triggered"
And if multiple, it is the first from the left
And if none, then the far-left icon is selected
And the rest of the dashboard is indeed showing data relating to the "selected" disaster-type
Scenario: Switch Disaster-type
Given the "country" has more than 1 "disaster-type"
When the user clicks on a "non-selected" disaster-type
Then the icon switches to "selected" mode
And the previous selected icon switches to "unselected" mode
And the "disaster-type" in the header section switches to the selected "disaster-type"
And the data of the rest the dashboard updates to the new "selected" disaster-type