Skip to content

Commit 671ed9d

Browse files
committed
add BalanceUnitSwitchedToast
1 parent 5949f58 commit 671ed9d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/specs/settings.e2e.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ describe('@settings - Settings', () => {
4343
await tap('TotalBalance');
4444
}
4545
await expect(fiatSymbol).toHaveText('$');
46+
if (driver.isIOS) {
47+
await waitForToast('BalanceUnitSwitchedToast');
48+
}
4649

4750
// - change settings (currency to EUR) //
4851
await tap('HeaderMenu');
@@ -132,6 +135,7 @@ describe('@settings - Settings', () => {
132135
await tap('N1');
133136
await tap('Continue');
134137
await tap('NavigationBack');
138+
await sleep(1000);
135139
await expect(await elementByIdWithin('TransactionSpeedSettings', 'Value')).toHaveText(
136140
/.*Custom/
137141
);
@@ -245,7 +249,7 @@ describe('@settings - Settings', () => {
245249

246250
// Restart the app
247251
await sleep(3000);
248-
await launchFreshApp({ tryHandleAlert: driver.isAndroid });
252+
await launchFreshApp();
249253
// Balance should be hidden
250254
await elementById('ShowBalance').waitForDisplayed();
251255
});
@@ -259,6 +263,7 @@ describe('@settings - Settings', () => {
259263
await sleep(1000);
260264
await tap('ResetAndRestore');
261265
await tap('NavigationBack');
266+
await sleep(1000);
262267
await tap('BackupWallet');
263268
await sleep(1000); // animation
264269

0 commit comments

Comments
 (0)