Skip to content

Commit 6063b92

Browse files
authored
LW-9711 dapp bug add test (#1392)
1 parent 8fbe4fa commit 6063b92

File tree

5 files changed

+31
-23
lines changed

5 files changed

+31
-23
lines changed

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

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
@DAppConnector
1+
@DAppConnector @Testnet
22
Feature: DAppConnector - Common
33

44
Background:
55
Given Lace is ready for test
66
And I de-authorize all DApps in extended mode
77
And I reclaim collateral (if active) in extended mode
88

9-
@LW-3760 @Testnet @Mainnet
9+
@LW-3760 @Mainnet
1010
Scenario: Limited wallet information when wallet is not connected
1111
When I open test DApp
1212
Then I see Lace wallet info in DApp when not connected
1313

14-
@LW-6660 @Testnet @Mainnet
14+
@LW-6660 @Mainnet
1515
Scenario: DApp connection modal displayed after clicking "Authorize"
1616
When I open test DApp
1717
Then I see DApp authorization window
1818
When I click "Authorize" button in DApp authorization window
1919
Then I see DApp connection modal
2020

21-
@LW-3756 @Testnet @Mainnet
21+
@LW-3756 @Mainnet
2222
Scenario: Canceling DApp connection
2323
When I open test DApp
2424
Then I see DApp authorization window
@@ -30,7 +30,7 @@ Feature: DAppConnector - Common
3030
When I open test DApp
3131
Then I see DApp authorization window
3232

33-
@LW-4062 @LW-3753 @LW-9080 @Testnet @Mainnet
33+
@LW-4062 @LW-3753 @LW-9080 @Mainnet
3434
Scenario: Authorize app functions as expected when the user chooses 'Only once'
3535
Given I am on Tokens extended page
3636
And I save token: "Cardano" balance
@@ -45,7 +45,7 @@ Feature: DAppConnector - Common
4545
When I open test DApp
4646
Then I see DApp authorization window
4747

48-
@LW-3754 @LW-4064 @LW-3753 @Smoke @Testnet @Mainnet
48+
@LW-3754 @LW-4064 @LW-3753 @Smoke @Mainnet
4949
Scenario: Authorize app functions as expected when the user chooses 'Always'
5050
When I open test DApp
5151
And I see DApp authorization window
@@ -59,7 +59,7 @@ Feature: DAppConnector - Common
5959
Then I see Lace wallet info in DApp when connected
6060
And I don't see DApp window
6161

62-
@LW-3807 @Testnet @Mainnet
62+
@LW-3807 @Mainnet
6363
Scenario: "No wallet" modal displayed after trying to connect Dapp when there is no wallet
6464
Given I remove wallet
6565
And I accept analytics banner on "Get started" page
@@ -70,7 +70,7 @@ Feature: DAppConnector - Common
7070
And I switch to window with Lace
7171
Then "Get started" page is displayed
7272

73-
@LW-3758 @Testnet @Mainnet @Pending
73+
@LW-3758 @Mainnet @Pending
7474
Scenario: Unlock Dapp page is displayed when wallet is locked, wallet can be unlocked
7575
Given I lock my wallet
7676
When I open test DApp
@@ -79,7 +79,7 @@ Feature: DAppConnector - Common
7979
And I click "Unlock" button on unlock screen
8080
Then I see DApp authorization window
8181

82-
@LW-7082 @Testnet @Mainnet @Pending
82+
@LW-7082 @Mainnet @Pending
8383
Scenario: "Forgot password" click and cancel on DApp wallet unlock page
8484
Given I lock my wallet
8585
When I open test DApp
@@ -89,7 +89,7 @@ Feature: DAppConnector - Common
8989
And I click on "Cancel" button on "Forgot password?" modal
9090
Then I see DApp unlock page
9191

92-
@LW-7083 @Testnet @Mainnet @Pending
92+
@LW-7083 @Mainnet @Pending
9393
Scenario: "Forgot password" click and proceed on DApp wallet unlock page
9494
Given I lock my wallet
9595
When I open test DApp
@@ -101,7 +101,7 @@ Feature: DAppConnector - Common
101101
When I switch to tab with restore wallet process
102102
Then "Wallet setup" page is displayed
103103

104-
@LW-4060 @Testnet
104+
@LW-4060
105105
Scenario Outline: DApp connector window displayed in <theme> mode
106106
Given I click the menu button
107107
And I set theme switcher to <theme> mode
@@ -121,7 +121,7 @@ Feature: DAppConnector - Common
121121
| light |
122122
| dark |
123123

124-
@LW-7743 @Testnet
124+
@LW-7743
125125
Scenario: DApp connector window theme updated from light to dark while using DApp
126126
Given I click the menu button
127127
And I set theme switcher to light mode
@@ -141,7 +141,7 @@ Feature: DAppConnector - Common
141141
When I click "Send ADA" "Run" button in test DApp
142142
Then I see DApp connector "Confirm transaction" page in dark mode
143143

144-
@LW-4071 @Testnet
144+
@LW-4071
145145
Scenario: DApp remains authorised after choosing "Always" and removing & restoring a wallet
146146
Given I open and authorize test DApp with "Always" setting
147147
And I switch to window with Lace
@@ -159,7 +159,7 @@ Feature: DAppConnector - Common
159159
When I open test DApp
160160
Then I don't see DApp window
161161

162-
@LW-4070 @Testnet
162+
@LW-4070
163163
Scenario: Authorize Dapp with 'Only once' and leaving/closing DApp
164164
Given I open and authorize test DApp with "Only once" setting
165165
And I switch to window with DApp
@@ -175,7 +175,7 @@ Feature: DAppConnector - Common
175175
When I open test DApp
176176
Then I see DApp authorization window
177177

178-
@LW-9481 @Testnet @Mainnet
178+
@LW-9481 @Mainnet
179179
Scenario: Signing data / no errors in console
180180
Given I am on Tokens extended page
181181
And I save token: "Cardano" balance
@@ -191,7 +191,7 @@ Feature: DAppConnector - Common
191191
And I verify there are no errors in console logs
192192
And I see Lace wallet info in DApp when connected
193193

194-
@LW-8403 @LW-8406 @Testnet
194+
@LW-8403 @LW-8406
195195
Scenario: Automatically trigger collateral setup - happy path
196196
Given I am on Settings extended page
197197
And I see collateral as: "Inactive" in settings
@@ -211,7 +211,7 @@ Feature: DAppConnector - Common
211211
And I click "Set Collateral" button in test DApp
212212
Then I see DApp collateral window
213213

214-
@LW-8404 @Testnet
214+
@LW-8404
215215
Scenario: Automatically trigger collateral setup - click cancel on Collateral modal
216216
Given I open and authorize test DApp with "Only once" setting
217217
And I click "Set Collateral" button in test DApp
@@ -221,7 +221,7 @@ Feature: DAppConnector - Common
221221
And I click "Set Collateral" button in test DApp
222222
And I see DApp collateral window
223223

224-
@LW-8405 @Testnet
224+
@LW-8405
225225
Scenario: Automatically trigger collateral setup - Do not show automatic collateral window if it has been set manually
226226
Given I am on Settings extended page
227227
And I click on "Collateral" setting
@@ -231,7 +231,7 @@ Feature: DAppConnector - Common
231231
When I click "Set Collateral" button in test DApp
232232
Then I don't see DApp window
233233

234-
@LW-8410 @Testnet
234+
@LW-8410
235235
Scenario: Automatically trigger collateral setup - network change
236236
Given I am on Settings extended page
237237
And I see collateral as: "Inactive" in settings
@@ -256,3 +256,11 @@ Feature: DAppConnector - Common
256256
And I open and authorize test DApp with "Only once" setting
257257
When I click "Set Collateral" button in test DApp
258258
Then I see DApp collateral window
259+
260+
@LW-11372
261+
Scenario: Test for bug LW-7832 - Wrong url displayed in DApp transaction confirmation screen
262+
When I open and authorize test DApp with "Only once" setting
263+
And I click "Send ADA" "Run" button in test DApp
264+
And I switch to window with Lace
265+
Then I see DApp connector "Confirm transaction" page with all UI elements and with following data in "Transaction Summary" section:
266+
| -3.00 tADA - FEE |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@DAppConnector-Extended
1+
@DAppConnector @DAppConnector-Extended
22
Feature: DAppConnector - Extended view
33

44
Background:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@DAppConnectorLowFunds @Testnet
1+
@DAppConnector @DAppConnectorLowFunds @Testnet
22
Feature: DAppConnector - Low Funds
33

44
Background:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@DAppConnector-Popup
1+
@DAppConnector @DAppConnector-Popup
22
Feature: DAppConnector - Popup view
33

44
Background:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@SendTransactionDapp-E2E @E2E @Testnet
1+
@DAppConnector @SendTransactionDapp-E2E @E2E @Testnet
22
Feature: Send Transactions from Dapp - E2E
33

44
Background:

0 commit comments

Comments
 (0)