Skip to content

Commit 53dce7f

Browse files
authored
test(extension): change test removal order (#704)
1 parent 4238899 commit 53dce7f

File tree

4 files changed

+47
-44
lines changed

4 files changed

+47
-44
lines changed

packages/e2e-tests/src/features/SettingsPageExtended.feature

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ Feature: General Settings - Extended Browser View
4040
| browserView.settings.legal.privacyPolicy.title |
4141
| browserView.settings.legal.cookiePolicy.title |
4242

43-
@LW-2521 @Mainnet @Testnet
44-
Scenario: Extended View - Remove wallet and confirm
45-
And my local storage is fully initialized
46-
When I open settings from header menu
47-
And I click on Remove wallet button
48-
And I click "Remove wallet" button on "Remove wallet" modal
49-
Then "Get started" page is displayed
50-
And I expect browser local storage to be empty
51-
And Mnemonic is not stored in background storage
52-
5343
@LW-2522 @Mainnet @Testnet
5444
Scenario: Extended View - Try to remove wallet and cancel
5545
And my local storage is fully initialized
@@ -378,3 +368,14 @@ Feature: General Settings - Extended Browser View
378368
And I click "Got it" button on "DApp connector is now in Beta" modal
379369
Then I see LW homepage
380370
And I see a different wallet address than in my initial wallet
371+
372+
# this test should be executed as the last one in this suite
373+
@LW-2521 @Mainnet @Testnet
374+
Scenario: Extended View - Remove wallet and confirm
375+
And my local storage is fully initialized
376+
When I open settings from header menu
377+
And I click on Remove wallet button
378+
And I click "Remove wallet" button on "Remove wallet" modal
379+
Then "Get started" page is displayed
380+
And I expect browser local storage to be empty
381+
And Mnemonic is not stored in background storage

packages/e2e-tests/src/features/SettingsPagePopup.feature

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ Feature: General Settings - Popup View
4646
| browserView.settings.legal.privacyPolicy.title |
4747
| browserView.settings.legal.cookiePolicy.title |
4848

49-
@LW-2708 @Mainnet @Testnet
50-
Scenario: Popup View - Remove wallet and confirm
51-
Given I am on Tokens popup page
52-
And my local storage is fully initialized
53-
When I open settings from header menu
54-
And I click on Remove wallet button
55-
And I click "Remove wallet" button on "Remove wallet" modal
56-
And I switch to last window
57-
Then "Get started" page is displayed
58-
And I expect browser local storage to be empty
59-
And Mnemonic is not stored in background storage
60-
6149
@LW-2707 @Mainnet @Testnet
6250
Scenario: Popup view - Try to remove wallet and cancel
6351
Given I am on Tokens popup page
@@ -321,3 +309,16 @@ Feature: General Settings - Popup View
321309
Scenario: Popup view - Settings - Analytics option displayed
322310
Given I open settings from header menu
323311
Then I see analytics option with proper description and toggle
312+
313+
# this test should be executed as the last one in this suite
314+
@LW-2708 @Mainnet @Testnet
315+
Scenario: Popup View - Remove wallet and confirm
316+
Given I am on Tokens popup page
317+
And my local storage is fully initialized
318+
When I open settings from header menu
319+
And I click on Remove wallet button
320+
And I click "Remove wallet" button on "Remove wallet" modal
321+
And I switch to last window
322+
Then "Get started" page is displayed
323+
And I expect browser local storage to be empty
324+
And Mnemonic is not stored in background storage

packages/e2e-tests/src/features/analytics/AnalyticsSettingsExtended.feature

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,6 @@ Feature: Analytics - Settings - Extended View
126126
Then I validate latest analytics single event "settings | hold up | back | click"
127127
And I validate that 2 analytics event(s) have been sent
128128

129-
@LW-8559
130-
Scenario: Analytics - Extended View - Settings - Wallet removal events - Remove wallet
131-
When I open settings from header menu
132-
And I set up request interception for posthog analytics request(s)
133-
And I click on Remove wallet button
134-
Then I validate latest analytics single event "settings | remove wallet | click"
135-
And I click "Remove wallet" button on "Remove wallet" modal
136-
Then I validate latest analytics single event "settings | hold up | remove wallet | click"
137-
And I validate that 2 analytics event(s) have been sent
138-
139129
@LW-8787
140130
Scenario: Analytics - Extended View - Settings - Recovery phrase
141131
When I open settings from header menu
@@ -177,4 +167,14 @@ Feature: Analytics - Settings - Extended View
177167
And I set theme switch in settings to light mode
178168
Then I validate latest analytics single event "settings | theme | light mode | click"
179169
Then I validate that 2 analytics event(s) have been sent
180-
170+
171+
# this test should be executed as the last one in this suite
172+
@LW-8559
173+
Scenario: Analytics - Extended View - Settings - Wallet removal events - Remove wallet
174+
When I open settings from header menu
175+
And I set up request interception for posthog analytics request(s)
176+
And I click on Remove wallet button
177+
Then I validate latest analytics single event "settings | remove wallet | click"
178+
And I click "Remove wallet" button on "Remove wallet" modal
179+
Then I validate latest analytics single event "settings | hold up | remove wallet | click"
180+
And I validate that 2 analytics event(s) have been sent

packages/e2e-tests/src/features/analytics/AnalyticsSettingsPopup.feature

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,6 @@ Feature: Analytics - Settings - Popup View
139139
Then I validate latest analytics single event "settings | hold up | back | click"
140140
And I validate that 2 analytics event(s) have been sent
141141

142-
@LW-8571
143-
Scenario: Analytics - Popup View - Settings - Wallet removal events - Remove wallet
144-
Given I am on Tokens popup page
145-
When I open settings from header menu
146-
And I set up request interception for posthog analytics request(s)
147-
And I click on Remove wallet button
148-
Then I validate latest analytics single event "settings | remove wallet | click"
149-
And I click "Remove wallet" button on "Remove wallet" modal
150-
Then I validate latest analytics single event "settings | hold up | remove wallet | click"
151-
And I validate that 2 analytics event(s) have been sent
152-
153142
@LW-8783
154143
Scenario: Analytics - Popup View - Settings - Recovery phrase
155144
Given I am on Tokens popup page
@@ -195,3 +184,15 @@ Feature: Analytics - Settings - Popup View
195184
And I set theme switch in settings to light mode
196185
Then I validate latest analytics single event "settings | theme | light mode | click"
197186
Then I validate that 2 analytics event(s) have been sent
187+
188+
# this test should be executed as the last one in this suite
189+
@LW-8571
190+
Scenario: Analytics - Popup View - Settings - Wallet removal events - Remove wallet
191+
Given I am on Tokens popup page
192+
When I open settings from header menu
193+
And I set up request interception for posthog analytics request(s)
194+
And I click on Remove wallet button
195+
Then I validate latest analytics single event "settings | remove wallet | click"
196+
And I click "Remove wallet" button on "Remove wallet" modal
197+
Then I validate latest analytics single event "settings | hold up | remove wallet | click"
198+
And I validate that 2 analytics event(s) have been sent

0 commit comments

Comments
 (0)