@@ -148,13 +148,22 @@ test.describe("Create or connect wallets", () => {
148
148
await browser . close ( ) ;
149
149
} ) ;
150
150
151
- test ( "successfully connects to Umbrel" , async ( ) => {
151
+ test ( "successfully connects to Umbrel LND " , async ( ) => {
152
152
const { browser, page, $document } = await createNewWalletWithPassword ( {
153
153
openConnectOtherWallet : true ,
154
154
} ) ;
155
155
156
156
const connectButton = await getByText ( $document , "Umbrel" ) ;
157
- connectButton . click ( ) ;
157
+ await Promise . all ( [
158
+ page . waitForNavigation ( ) , // The promise resolves after navigation has finished
159
+ connectButton . click ( )
160
+ ] ) ;
161
+
162
+ const lndButton = await getByText ( $document , "Lightning Node" ) ;
163
+ await Promise . all ( [
164
+ page . waitForNavigation ( ) , // The promise resolves after navigation has finished
165
+ lndButton . click ( )
166
+ ] ) ;
158
167
159
168
// wait for the field label instead of headline (headline text already exists on the page before)
160
169
await findByText ( $document , "lndconnect REST URL" ) ;
@@ -172,13 +181,22 @@ test.describe("Create or connect wallets", () => {
172
181
await browser . close ( ) ;
173
182
} ) ;
174
183
175
- test ( "successfully connects to myNode" , async ( ) => {
184
+ test ( "successfully connects to myNode LND " , async ( ) => {
176
185
const { browser, page, $document } = await createNewWalletWithPassword ( {
177
186
openConnectOtherWallet : true ,
178
187
} ) ;
179
188
180
189
const connectButton = await getByText ( $document , "myNode" ) ;
181
- connectButton . click ( ) ;
190
+ await Promise . all ( [
191
+ page . waitForNavigation ( ) , // The promise resolves after navigation has finished
192
+ connectButton . click ( )
193
+ ] ) ;
194
+
195
+ const lndButton = await getByText ( $document , "LND" ) ;
196
+ await Promise . all ( [
197
+ page . waitForNavigation ( ) , // The promise resolves after navigation has finished
198
+ lndButton . click ( )
199
+ ] ) ;
182
200
183
201
// wait for the field label instead of headline (headline text already exists on the page before)
184
202
await findByText ( $document , "lndconnect REST URL" ) ;
@@ -202,7 +220,16 @@ test.describe("Create or connect wallets", () => {
202
220
} ) ;
203
221
204
222
const connectButton = await getByText ( $document , "Start9" ) ;
205
- connectButton . click ( ) ;
223
+ await Promise . all ( [
224
+ page . waitForNavigation ( ) , // The promise resolves after navigation has finished
225
+ connectButton . click ( )
226
+ ] ) ;
227
+
228
+ const lndButton = await getByText ( $document , "LND" ) ;
229
+ await Promise . all ( [
230
+ page . waitForNavigation ( ) , // The promise resolves after navigation has finished
231
+ lndButton . click ( )
232
+ ] ) ;
206
233
207
234
// wait for the field label instead of headline (headline text already exists on the page before)
208
235
await findByText ( $document , "lndconnect REST URL" ) ;
0 commit comments