Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/specs/mainnet/ln.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ async function waitForWalletReady(): Promise<void> {

await expectTextWithin('Status-internet', 'Connected', { timeout: APP_STATUS_ROW_TIMEOUT_MS });
await expectTextWithin('Status-electrum', 'Connected', { timeout: APP_STATUS_ROW_TIMEOUT_MS });
await expectTextWithin('Status-lightning_node', 'Running', { timeout: APP_STATUS_ROW_TIMEOUT_MS });
await expectTextWithin('Status-lightning_connection', 'Open', { timeout: APP_STATUS_ROW_TIMEOUT_MS });
await expectTextWithin('Status-lightning_node', 'Running', {
timeout: APP_STATUS_ROW_TIMEOUT_MS,
});
await expectTextWithin('Status-lightning_connection', 'Open', {
timeout: APP_STATUS_ROW_TIMEOUT_MS,
});

await doNavigationClose();
console.info('→ [LN] App status verified');
Expand Down
13 changes: 11 additions & 2 deletions test/specs/settings.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,24 @@ describe('@settings - Settings', () => {
const newUrl = `${rgsUrl}/`;

// url should be updated
await typeText('RGSUrl', newUrl);
await confirmInputOnKeyboard();
try {
await typeText('RGSUrl', newUrl);
await confirmInputOnKeyboard();
await elementById('ConnectToHost').waitForEnabled();
} catch {
console.info('→ [Settings] RGSUrl is not updated properly, trying again...');
await typeText('RGSUrl', newUrl);
await confirmInputOnKeyboard();
await elementById('ConnectToHost').waitForEnabled();
}
await tap('ConnectToHost');
await waitForToast('RgsUpdatedToast');
const updatedUrl = await (await elementById('ConnectedUrl')).getText();
await expect(updatedUrl).toBe(newUrl);

// switch back to default
await tap('ResetToDefault');
await sleep(2000);
await tap('ConnectToHost');
await waitForToast('RgsUpdatedToast', { waitToDisappear: false });

Expand Down