Skip to content

Commit

Permalink
test(extension): cancel transaction analytics automation (#1134)
Browse files Browse the repository at this point in the history
* fix: adds posthog actions on confirm and cancel dapp transactions

* fix: match the set of strings to the previous confirm click

* fix: semi typo

* fix: adds cancel posthog analytics for confirmation screen

* fix: missing call

* test(extension): add automation for cancel event analytics

---------

Co-authored-by: Vanessa Rodriguez Cristobal <vanessa.cristobal@iohk.io>
  • Loading branch information
bslabiak and VanessaPC committed May 8, 2024
1 parent 176dca7 commit 633801f
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ Feature: Analytics - Posthog - Sending - Extended View
And I validate that 1 analytics event(s) have been sent
And Local storage unconfirmedTransaction is empty

@LW-10505
Scenario: Analytics - Send - Dapp Success Screen - View transaction - Transaction Canceled
Given I de-authorize all DApps in extended mode
And I open and authorize test DApp with "Only once" setting
And I set send to wallet address to: "WalletAnalyticsReceiveSimpleTransactionE2E" in test DApp
And I click "Send ADA" "Run" button in test DApp
Then I see DApp connector "Confirm transaction" page with all UI elements and with following data in "Transaction Summary" section:
| -3.00 tADA - FEE |
And I set up request interception for posthog analytics request(s)
When I click "Confirm" button on "Confirm transaction" page
When I click "Cancel" button on "Sign transaction" page
Then I validate latest analytics single event "send | transaction confirmation | cancel | click"
And I validate that the "send | transaction confirmation | cancel | click" event includes property "tx_creation_type" with value "external" in posthog

@LW-9111
Scenario: Analytics - Extended-view - Outdated unconfirmedTransaction is deleted
Given I set up request interception for posthog analytics request(s)
Expand Down

0 comments on commit 633801f

Please sign in to comment.