|
1 | | -@Analytics-Staking-SwitchingPools-Extended-E2E @Analytics @Testnet @Pending |
2 | | -Feature: Analytics - Posthog - Switching pools - Extended View |
| 1 | +@Staking-NonDelegatedFunds-Extended @Analytics @Testnet |
| 2 | +Feature: Analytics - PostHog - Staking - Extended View |
3 | 3 |
|
4 | 4 | Background: |
5 | 5 | Given Wallet is synced |
6 | 6 |
|
7 | | - @LW-7868 |
8 | | - Scenario: Analytics - Extended View - Staking - Success screen - Close drawer |
9 | | - Given I set up request interception for posthog analytics request(s) |
10 | | - And I save token: "Cardano" balance |
| 7 | + @LW-10147 |
| 8 | + Scenario: Analytics - Extended View - Staking - switching between views |
11 | 9 | When I navigate to Staking extended page |
12 | | - Then I validate latest analytics single event "staking | staking | click" |
13 | | - Then I see currently staking stake pool in extended mode and choose new pool as "OtherStakePool" |
14 | | - When I input "OtherStakePool" to the search bar |
15 | | - And I wait for single search result |
16 | | - And I click stake pool with name "OtherStakePool" |
17 | | - Then I validate latest analytics single event "staking | staking | stake pool | click" |
18 | | - Then I see drawer with "OtherStakePool" stake pool details and a button available for staking |
19 | | - When I click "Stake on this pool" button on stake pool details drawer |
20 | | - Then I validate latest analytics single event "staking | stake pool detail | stake on this pool | click" |
21 | | - And I click "Fine by me" button on "Switching pool?" modal |
22 | | - Then I validate latest analytics single event "staking | switching pool? | fine by me | click" |
23 | | - Then I see drawer with stakepool: "OtherStakePool" confirmation screen in extended mode |
24 | | - And I click "Next" button on staking confirmation drawer |
25 | | - Then I validate latest analytics single event "staking | manage delegation | stake pool confirmation | next | click" |
26 | | - And I enter correct wallet password and confirm staking |
27 | | - Then Switching Delegation success screen is displayed in extended mode |
28 | | - And I validate latest analytics multiple events: |
29 | | - | staking \| manage delegation \| hurray! \| view | |
30 | | - | staking \| manage delegation \| password confirmation \| confirm \| click | |
31 | | - When I click "Close" button on staking success drawer |
32 | | - Then I validate latest analytics single event "staking | manage delegation | hurray! | close | click" |
33 | | - And I validate that 8 analytics event(s) have been sent |
| 10 | + And I open Browse pools tab |
| 11 | + And I set up request interception for posthog analytics request(s) |
| 12 | + And I switch to list view on "Browse pools" tab |
| 13 | + Then I validate latest analytics single event "staking | browse pools | toggle | list view | click" |
| 14 | + # TODO: enable when USE_MULTI_DELEGATION_STAKING_GRID_VIEW=true by default |
| 15 | + # When I switch to grid view on "Browse pools" tab |
| 16 | + # Then I validate latest analytics single event "staking | browse pools | toggle | grid view | click" |
| 17 | + And I validate that 1 analytics event(s) have been sent |
34 | 18 |
|
35 | | - @LW-7869 |
36 | | - Scenario: Analytics - Extended View - Staking - Success screen - Close drawer by clicking X button |
37 | | - Given I set up request interception for posthog analytics request(s) |
38 | | - And I save token: "Cardano" balance |
| 19 | + @LW-10148 |
| 20 | + Scenario: Analytics - Extended View - Staking - List View - click on column headers |
39 | 21 | When I navigate to Staking extended page |
40 | | - Then I validate latest analytics single event "staking | staking | click" |
41 | | - Then I see currently staking stake pool in extended mode and choose new pool as "OtherStakePool" |
42 | | - When I input "OtherStakePool" to the search bar |
43 | | - And I wait for single search result |
44 | | - And I click stake pool with name "OtherStakePool" |
45 | | - Then I validate latest analytics single event "staking | staking | stake pool | click" |
46 | | - Then I see drawer with "OtherStakePool" stake pool details and a button available for staking |
47 | | - When I click "Stake on this pool" button on stake pool details drawer |
48 | | - Then I validate latest analytics single event "staking | stake pool detail | stake on this pool | click" |
49 | | - And I click "Fine by me" button on "Switching pool?" modal |
50 | | - Then I validate latest analytics single event "staking | switching pool? | fine by me | click" |
51 | | - Then I see drawer with stakepool: "OtherStakePool" confirmation screen in extended mode |
52 | | - And I click "Next" button on staking confirmation drawer |
53 | | - Then I validate latest analytics single event "staking | manage delegation | stake pool confirmation | next | click" |
54 | | - And I enter correct wallet password and confirm staking |
55 | | - Then Switching Delegation success screen is displayed in extended mode |
56 | | - And I validate latest analytics multiple events: |
57 | | - | staking \| manage delegation \| hurray! \| view | |
58 | | - | staking \| manage delegation \| password confirmation \| confirm \| click | |
59 | | - When I close the drawer by clicking close button |
60 | | - Then I validate latest analytics single event "staking | manage delegation | hurray! | x | click" |
61 | | - And I validate that 8 analytics event(s) have been sent |
| 22 | + And I open Browse pools tab |
| 23 | + And I switch to list view on "Browse pools" tab |
| 24 | + And I set up request interception for posthog analytics request(s) |
| 25 | + And I click on stake pools table "Ticker" column header |
| 26 | + Then I validate latest analytics single event "staking | browse pools | ticker | click" |
| 27 | + When I click on stake pools table "Saturation" column header |
| 28 | + Then I validate latest analytics single event "staking | browse pools | saturation | click" |
| 29 | + # TODO: Uncomment when USE_ROS_STAKING_COLUMN=true |
| 30 | + # When I click on stake pools table "ROS" column header |
| 31 | + # Then I validate latest analytics single event "staking | browse pools | ros | click" |
| 32 | + When I click on stake pools table "Cost" column header |
| 33 | + Then I validate latest analytics single event "staking | browse pools | cost | click" |
| 34 | + When I click on stake pools table "Margin" column header |
| 35 | + Then I validate latest analytics single event "staking | browse pools | margin | click" |
| 36 | + When I click on stake pools table "Blocks" column header |
| 37 | + Then I validate latest analytics single event "staking | browse pools | blocks | click" |
| 38 | + When I click on stake pools table "Pledge" column header |
| 39 | + Then I validate latest analytics single event "staking | browse pools | pledge | click" |
| 40 | + When I click on stake pools table "Live Stake" column header |
| 41 | + Then I validate latest analytics single event "staking | browse pools | live-stake | click" |
| 42 | + And I validate that 7 analytics event(s) have been sent |
| 43 | + |
| 44 | + @LW-10149 |
| 45 | + Scenario: Analytics - Extended View - Staking - More options - Sorting - select each option |
| 46 | + When I navigate to Staking extended page |
| 47 | + And I open Browse pools tab |
| 48 | + And I switch to list view on "Browse pools" tab |
| 49 | + And I set up request interception for posthog analytics request(s) |
| 50 | + When I select "Saturation" sorting option from "More options" component |
| 51 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | saturation | click" |
| 52 | + # TODO: Uncomment when USE_ROS_STAKING_COLUMN=true |
| 53 | + # When I select "ROS" sorting option from "More options" component |
| 54 | + # Then I validate latest analytics single event "staking | browse pools | more options sorting | ros | click" |
| 55 | + When I select "Cost" sorting option from "More options" component |
| 56 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | cost | click" |
| 57 | + When I select "Margin" sorting option from "More options" component |
| 58 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | margin | click" |
| 59 | + When I select "Produced blocks" sorting option from "More options" component |
| 60 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | produced blocks | click" |
| 61 | + When I select "Pledge" sorting option from "More options" component |
| 62 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | pledge | click" |
| 63 | + When I select "Live Stake" sorting option from "More options" component |
| 64 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | live-stake | click" |
| 65 | + And I select "Ticker" sorting option from "More options" component |
| 66 | + Then I validate latest analytics single event "staking | browse pools | more options sorting | ticker | click" |
| 67 | + And I validate that 7 analytics event(s) have been sent |
0 commit comments