Skip to content

Commit

Permalink
test(extension): e2e - LW-8527 - add test for automatic collateral + …
Browse files Browse the repository at this point in the history
…network change (#605)
  • Loading branch information
ljagiela authored Oct 4, 2023
1 parent ab25f24 commit e63ef5e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/e2e-tests/src/features/DAppConnector.feature
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,29 @@ Feature: DAppConnector - Common
And I open and authorize test DApp with "Only once" setting
When I click "Set Collateral" button in test DApp
Then I don't see DApp window

@LW-8410
Scenario: Automatically trigger collateral setup - network change
Given I am on Settings extended page
And I see collateral as: "Inactive" in settings
And I click on "Collateral" setting
And all elements of Inactive collateral drawer are displayed
And I open and authorize test DApp with "Only once" setting
And I click "Set Collateral" button in test DApp
And I see DApp collateral window
And I click "Confirm" button in DApp collateral window
And I see DApp connector "All done" page
And I click "Close" button on DApp "All done" page
And I don't see DApp window
And I switch to window with Lace
And I close all remaining tabs except current one
And all elements of Active collateral drawer are displayed
And I close the drawer by clicking close button
And I switch network to: "Preview" in extended mode
And Wallet is synced
And I am on Settings extended page
And I click on "Collateral" setting
And all elements of Inactive collateral drawer are displayed
And I open and authorize test DApp with "Only once" setting
When I click "Set Collateral" button in test DApp
Then I see DApp collateral window

0 comments on commit e63ef5e

Please sign in to comment.