|
| 1 | +@e2e @newsfeed @noReload |
| 2 | +Feature: Newsfeed |
| 3 | + |
| 4 | + Newsfeed delivers important information to Daedalus users, like information about network failures, bugs and other |
| 5 | + issues, information about upcoming and recent releases and so on. News are categorised in 4 types: |
| 6 | + incident, alert, announcement and info. Incidents and alerts cover the whole user interface, |
| 7 | + announcements and info are delivered in the newsfeed part of the user interface. |
| 8 | + |
| 9 | + Background: |
| 10 | + Given I have completed the basic setup |
| 11 | + |
| 12 | + @reconnectApp |
| 13 | + Scenario: Newsfeed icon is visible on the connecting screen |
| 14 | + Given im on the connecting screen |
| 15 | + Then i should see the newsfeed icon |
| 16 | + |
| 17 | + @reconnectApp |
| 18 | + Scenario: Newsfeed icon is visible on the syncing screen |
| 19 | + Given im on the syncing screen |
| 20 | + Then i should see the newsfeed icon |
| 21 | + |
| 22 | + Scenario: Newsfeed icon is visible in the main ui |
| 23 | + Given I should see the main ui |
| 24 | + Then i should see the newsfeed icon |
| 25 | + |
| 26 | + Scenario: Newsfeed icon is highlighted when there are unread infos |
| 27 | + Given there are unread infos |
| 28 | + Then the newsfeed icon is highlighted |
| 29 | + |
| 30 | + Scenario: Newsfeed icon is highlighted when there are unread announcements |
| 31 | + Given there are unread announcements |
| 32 | + Then the newsfeed icon is highlighted |
| 33 | + |
| 34 | + Scenario: Newsfeed icon is not highlighted when all infos have been read |
| 35 | + Given there are read infos |
| 36 | + Then the newsfeed icon is not highlighted |
| 37 | + |
| 38 | + Scenario: Open the newsfeed by clicking the newsfeed icon |
| 39 | + Given I click on the newsfeed icon |
| 40 | + Then the newsfeed is open |
| 41 | + |
| 42 | + Scenario: No news available in the feed |
| 43 | + Given there is no news |
| 44 | + When I open the newsfeed |
| 45 | + Then the newsfeed is empty |
| 46 | + |
| 47 | + Scenario: Only read infos available in the feed |
| 48 | + Given there are 2 read infos |
| 49 | + When I open the newsfeed |
| 50 | + Then the newsfeed contains 2 read infos |
| 51 | + |
| 52 | + Scenario: Displaying an incident |
| 53 | + Given there is an incident |
| 54 | + Then the incident will cover the screen |
| 55 | + |
| 56 | + Scenario: Dismissing an alert |
| 57 | + Given there is 1 unread alert |
| 58 | + When I dismiss the alert |
| 59 | + Then the alert disappears |
| 60 | + |
| 61 | + Scenario: Opening and dismissing a read alert |
| 62 | + Given there is 1 read alert |
| 63 | + When I open the newsfeed |
| 64 | + When I click on the alert in the newsfeed |
| 65 | + Then the alert overlay opens |
| 66 | + When I dismiss the alert |
| 67 | + Then the alert disappears |
| 68 | + |
| 69 | + Scenario: Reading an announcement |
| 70 | + Given there is 1 unread announcement |
| 71 | + When I open the newsfeed |
| 72 | + And I click on the unread announcement to expand it |
| 73 | + Then the announcement content is shown |
| 74 | + And the announcement is marked as read |
| 75 | + |
| 76 | + Scenario: Reading an info |
| 77 | + Given there is 1 unread info |
| 78 | + When I open the newsfeed |
| 79 | + And I click on the unread info to expand it |
| 80 | + Then the info content is shown |
| 81 | + And the info is marked as read |
| 82 | + And the newsfeed icon is not highlighted |
| 83 | + |
| 84 | + Scenario: News unavailable |
| 85 | + Given the newsfeed server is unreachable |
| 86 | + When I open the newsfeed |
| 87 | + Then no news are available |
0 commit comments