Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4aadafb
acceptReceivedPayment for onchain payments
piotr-iohk Nov 26, 2025
f126c88
adjust PaymentConfirmedToast
piotr-iohk Nov 26, 2025
a15e8c5
acknowledgeReceivedPayment
piotr-iohk Nov 26, 2025
fddb498
waitForToast
piotr-iohk Nov 27, 2025
1429c64
temp adjust boost_1
piotr-iohk Nov 27, 2025
4d605ce
remove refresh in boost
piotr-iohk Nov 27, 2025
94684a5
remove PaymentConfirmedToast and TransactionConfirmedToast
piotr-iohk Nov 27, 2025
dfaefee
update toast ids
piotr-iohk Nov 27, 2025
1cbd12b
update RBF
piotr-iohk Nov 27, 2025
ba705e0
onchain PaymentConfirmedToast
piotr-iohk Nov 27, 2025
b4fc769
adjust CPFP
piotr-iohk Nov 27, 2025
96ff42c
transfer_1 stability
piotr-iohk Nov 28, 2025
00c5fa0
lightning stability sleep
piotr-iohk Nov 28, 2025
3bfcbf4
lightning adjustments + stability
piotr-iohk Nov 28, 2025
4c4acf8
waitForBackup in lightning
piotr-iohk Nov 28, 2025
38814ae
RGS and Electrum toast ids
piotr-iohk Dec 1, 2025
2f92f3d
adjust settings_10
piotr-iohk Dec 1, 2025
7960b38
Merge pull request #58 from synonymdev/fix/toast-ui
piotr-iohk Dec 2, 2025
2f308ab
add Balance toast ids and dismiss to waitForToast
piotr-iohk Dec 3, 2025
a0c52a9
remove tapBalanceToReset in launchFreshApp
piotr-iohk Dec 3, 2025
e6475a5
add BalanceUnitSwitchedToast
piotr-iohk Dec 3, 2025
d30efb3
disable check for iOS (bitkit-ios/issues/260)
piotr-iohk Dec 3, 2025
2b69f8b
stability
piotr-iohk Dec 3, 2025
187b90e
adjust settings_10 after ios fix
piotr-iohk Dec 3, 2025
71782ae
adjust lightning
piotr-iohk Dec 3, 2025
986e644
Merge pull request #61 from synonymdev/feat/balance-toasts
piotr-iohk Dec 3, 2025
dfb26a6
Merge pull request #62 from synonymdev/fix/electrum-settings
piotr-iohk Dec 3, 2025
a7e940c
Adjust lightning
piotr-iohk Dec 2, 2025
9168cbb
stability
piotr-iohk Dec 3, 2025
3de440d
Merge branch 'feat/onchain-events' into test/lightning
piotr-iohk Dec 4, 2025
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
33 changes: 27 additions & 6 deletions test/helpers/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,25 @@ export async function acknowledgeReceivedPayment() {
* await doTriggerTimedSheet();
*/
export async function doTriggerTimedSheet() {
await sleep(700); // wait for any previous animations to finish
await tap('HeaderMenu');
await tap('DrawerSettings');
await sleep(500); // wait for the app to settle
await doNavigationClose();
}

export async function dismissBackgroundPaymentsTimedSheet({
triggerTimedSheet = false,
}: { triggerTimedSheet?: boolean } = {}) {
if (triggerTimedSheet) {
await doTriggerTimedSheet();
}
await elementById('BackgroundPaymentsDescription').waitForDisplayed();
await sleep(500); // wait for the app to settle
await tap('BackgroundPaymentsCancel');
await sleep(500);
}

/**
* Dismisses the backup reminder sheet.
* This sheet is triggered by first onchain balance change.
Expand All @@ -744,7 +757,7 @@ export async function dismissBackupTimedSheet({
}
await elementById('BackupIntroViewDescription').waitForDisplayed();
await sleep(500); // wait for the app to settle
await tap('BackupIntroViewCancel');
await swipeFullScreen('down');
await sleep(500);
}

Expand All @@ -766,14 +779,22 @@ export async function dismissBackupTimedSheet({
export async function dismissQuickPayIntro({
triggerTimedSheet = false,
}: { triggerTimedSheet?: boolean } = {}) {
if (driver.isIOS) return; // Not supported on iOS yet
if (triggerTimedSheet) {
await doTriggerTimedSheet();
}
await elementById('QuickpayIntro-button').waitForDisplayed();
await sleep(500); // wait for the app to settle
await swipeFullScreen('down');
await sleep(500);

if (driver.isAndroid) {
// TODO: it's temp, change on Android to match iOS testID
await elementById('QuickpayIntro-button').waitForDisplayed();
await sleep(500); // wait for the app to settle
await swipeFullScreen('down');
await sleep(500);
} else {
await elementById('QuickpayIntroDescription').waitForDisplayed();
await sleep(500); // wait for the app to settle
await tap('QuickpayIntroCancel');
await sleep(500);
}
}

/**
Expand Down
15 changes: 12 additions & 3 deletions test/specs/lightning.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
elementByText,
dismissQuickPayIntro,
doNavigationClose,
dismissBackgroundPaymentsTimedSheet,
acknowledgeReceivedPayment,
waitForBackup,
} from '../helpers/actions';
Expand Down Expand Up @@ -111,8 +112,13 @@ describe('@lightning - Lightning', () => {
console.info({ response });
await elementById('ReceivedTransaction').waitForDisplayed();
await tap('ReceivedTransactionButton');
await sleep(500);
await dismissQuickPayIntro();
await sleep(1000);
if (driver.isIOS) {
await dismissBackgroundPaymentsTimedSheet({ triggerTimedSheet: driver.isIOS });
await dismissQuickPayIntro({ triggerTimedSheet: driver.isIOS });
} else {
await dismissQuickPayIntro();
}
const totalBalance = await elementByIdWithin('TotalBalance-primary', 'MoneyText');
await expect(totalBalance).toHaveText('11 000'); // 1k onchain + 10k lightning
await expectTextWithin('ActivitySpending', '10 000');
Expand Down Expand Up @@ -196,6 +202,7 @@ describe('@lightning - Lightning', () => {
await swipeFullScreen('up');
await swipeFullScreen('up');
await tap('ActivityShowAll');

// All transactions
await expectTextWithin('Activity-1', '-');
await expectTextWithin('Activity-2', '-');
Expand Down Expand Up @@ -280,7 +287,9 @@ describe('@lightning - Lightning', () => {
await mineBlocks(rpc, 6);
await electrum?.waitForSync();
await elementById('Channel').waitForDisplayed({ reverse: true });
await tap('NavigationBack');
if (driver.isAndroid) {
await tap('NavigationBack');
}
await doNavigationClose();

await swipeFullScreen('up');
Expand Down