Skip to content

Commit

Permalink
test(extension): fix analytics tests for ToS (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
wklos-iohk authored Jun 19, 2024
1 parent 9edb9ca commit 6da51a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Analytics-Settings-Extended @Analytics
@Analytics-Settings-Extended @Analytics @Testnet
Feature: Analytics - Settings - Extended View

Background:
Expand Down Expand Up @@ -93,29 +93,23 @@ Feature: Analytics - Settings - Extended View
And I set up request interception for posthog analytics request(s)
And I click on "Terms and conditions" setting
Then I validate latest analytics single event "settings | terms and conditions | click"
When I close the drawer by clicking close button
Then I validate latest analytics single event "settings | terms and conditions | x | click"
And I validate that 2 analytics event(s) have been sent
And I validate that 1 analytics event(s) have been sent

@LW-8556
Scenario: Analytics - Extended View - Settings - Privacy policy events
When I open settings from header menu
And I set up request interception for posthog analytics request(s)
And I click on "Privacy policy" setting
Then I validate latest analytics single event "settings | privacy policy | click"
When I close the drawer by clicking close button
Then I validate latest analytics single event "settings | privacy policy | x | click"
And I validate that 2 analytics event(s) have been sent
And I validate that 1 analytics event(s) have been sent

@LW-8557
Scenario: Analytics - Extended View - Settings - Cookie policy events
When I open settings from header menu
And I set up request interception for posthog analytics request(s)
And I click on "Cookie policy" setting
Then I validate latest analytics single event "settings | cookie policy | click"
When I close the drawer by clicking close button
Then I validate latest analytics single event "settings | cookie policy | x | click"
And I validate that 2 analytics event(s) have been sent
And I validate that 1 analytics event(s) have been sent

@LW-8558
Scenario: Analytics - Extended View - Settings - Wallet removal events - Cancel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ Feature: Analytics - Settings - Popup View
And I set up request interception for posthog analytics request(s)
And I click on "Terms and conditions" setting
Then I validate latest analytics single event "settings | terms and conditions | click"
When I close the drawer by clicking back button
Then I validate latest analytics single event "settings | terms and conditions | x | click"
And I validate that 2 analytics event(s) have been sent
And I validate that 1 analytics event(s) have been sent

@LW-8568
Scenario: Analytics - Popup View - Settings - Privacy policy events
Expand All @@ -113,9 +111,7 @@ Feature: Analytics - Settings - Popup View
And I set up request interception for posthog analytics request(s)
And I click on "Privacy policy" setting
Then I validate latest analytics single event "settings | privacy policy | click"
When I close the drawer by clicking back button
Then I validate latest analytics single event "settings | privacy policy | x | click"
And I validate that 2 analytics event(s) have been sent
And I validate that 1 analytics event(s) have been sent

@LW-8569
Scenario: Analytics - Popup View - Settings - Cookie policy events
Expand All @@ -124,10 +120,7 @@ Feature: Analytics - Settings - Popup View
And I set up request interception for posthog analytics request(s)
And I click on "Cookie policy" setting
Then I validate latest analytics single event "settings | cookie policy | click"
And I wait 1000 milliseconds
When I close the drawer by clicking back button
Then I validate latest analytics single event "settings | cookie policy | x | click"
And I validate that 2 analytics event(s) have been sent
And I validate that 1 analytics event(s) have been sent

@LW-8570
Scenario: Analytics - Popup View - Settings - Wallet removal events - Cancel
Expand Down

0 comments on commit 6da51a2

Please sign in to comment.