Skip to content

Commit d1ea055

Browse files
authored
Merge pull request #53 from synonymdev/test/ios-tags
Test ios tags
2 parents 0d16273 + d8b1d22 commit d1ea055

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

test/specs/boost.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ describe('@boost - Boost', () => {
270270

271271
// check activity after restore
272272
await swipeFullScreen('up');
273-
(await elementByIdWithin('ActivityShort-0','BoostingIcon')).waitForDisplayed();
274-
(await elementByIdWithin('ActivityShort-1','BoostingIcon')).waitForDisplayed();
273+
(await elementByIdWithin('ActivityShort-0', 'BoostingIcon')).waitForDisplayed();
274+
(await elementByIdWithin('ActivityShort-1', 'BoostingIcon')).waitForDisplayed();
275275
await tap('ActivityShort-0');
276276
await elementById('BoostedButton').waitForDisplayed();
277277
await elementById('StatusBoosting').waitForDisplayed();
@@ -296,7 +296,7 @@ describe('@boost - Boost', () => {
296296
await elementById('StatusConfirmed').waitForDisplayed();
297297
await doNavigationClose();
298298
(await elementByIdWithin('ActivityShort-1', 'BoostingIcon')).waitForDisplayed();
299-
await tap('ActivityShort-1')
299+
await tap('ActivityShort-1');
300300
await elementById('StatusRemoved').waitForDisplayed();
301301
});
302302
});

test/specs/onchain.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ describe('@onchain - Onchain', () => {
132132
// await elementById('ReceivedTransaction').waitForDisplayed();
133133

134134
if (i === 1) {
135-
await dismissBackupTimedSheet();
136-
await acknowledgeHighBalanceWarning();
135+
await dismissBackupTimedSheet({ triggerTimedSheet: driver.isIOS });
136+
await acknowledgeHighBalanceWarning({ triggerTimedSheet: driver.isIOS });
137137
}
138138
await sleep(1000); // wait for the app to settle
139139

test/specs/receive.e2e.ts

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ describe('@receive - Receive', () => {
7575
await tap('SpecifyInvoiceButton');
7676
await expectText('123');
7777
await expectTextWithin('ReceiveNote', note);
78-
// tags not shown on iOS
79-
// https://github.com/synonymdev/bitkit-ios/issues/197
80-
if (driver.isAndroid) {
81-
await expectText(tag);
82-
}
78+
await expectText(tag);
8379

8480
// Close & reopen
8581
await swipeFullScreen('down');
@@ -94,15 +90,11 @@ describe('@receive - Receive', () => {
9490
await expectTextWithin('ReceiveNote', note, { visible: false });
9591
await expectText(tag, { visible: false });
9692

97-
// tags not shown on iOS
98-
// https://github.com/synonymdev/bitkit-ios/issues/197
99-
if (driver.isAndroid) {
100-
// check previous tags & delete
101-
await tap('TagsAdd');
102-
await tap(`Tag-${tag}`);
103-
await expectText(tag);
104-
await tap(`Tag-${tag}-delete`);
105-
await expectText(tag, { visible: false });
106-
}
93+
// check previous tags & delete
94+
await tap('TagsAdd');
95+
await tap(`Tag-${tag}`);
96+
await expectText(tag);
97+
await tap(`Tag-${tag}-delete`);
98+
await expectText(tag, { visible: false });
10799
});
108100
});

test/specs/security.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('@security - Security And Privacy', () => {
6161
await tap('DrawerSettings');
6262
await tap('SecuritySettings');
6363
await tap('PINCode');
64-
await tap('SecureWallet-button-continue');
64+
await tap('SecureWalletContinue');
6565
await multiTap('N1', PIN_LENGTH); // enter PIN
6666
await multiTap('N2', PIN_LENGTH); // retype wrong PIN
6767
await elementById('WrongPIN').waitForDisplayed(); // WrongPIN warning should appear
@@ -136,7 +136,7 @@ describe('@security - Security And Privacy', () => {
136136
await tap('DrawerSettings');
137137
await tap('SecuritySettings');
138138
await tap('PINCode');
139-
await tap('SecureWallet-button-continue');
139+
await tap('SecureWalletContinue');
140140
await multiTap('N1', PIN_LENGTH); // enter PIN
141141
await multiTap('N1', PIN_LENGTH); // retype PIN
142142
await tap('SkipButton'); // skip Biometrics for now

0 commit comments

Comments
 (0)