Skip to content

Commit 11ab7a3

Browse files
authored
Merge pull request #50 from synonymdev/feat/rbf-removed-mempool
@boost_2 - Can do RBF update
2 parents 0d1b13c + 598e22d commit 11ab7a3

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

test/specs/boost.e2e.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ describe('@boost - Boost', () => {
7979
await elementById('ActivityShort-0').waitForDisplayed();
8080

8181
// no additional boost tx item on iOS, there is one on Android
82+
// https://github.com/synonymdev/bitkit-android/issues/463
8283
const showsBoostTxItem = driver.isAndroid;
8384
if (showsBoostTxItem) {
8485
await expect(elementById('ActivityShort-1')).toBeDisplayed();
@@ -235,7 +236,11 @@ describe('@boost - Boost', () => {
235236
await elementById('BoostingIcon').waitForDisplayed();
236237
await elementById('ActivityShort-0').waitForDisplayed();
237238
await elementById('ActivityShort-1').waitForDisplayed();
238-
await expect(elementById('ActivityShort-2')).not.toBeDisplayed();
239+
await elementById('ActivityShort-2').waitForDisplayed();
240+
await expectTextWithin('ActivityShort-0', '-');
241+
await expectTextWithin('ActivityShort-1', '-');
242+
await expectTextWithin('ActivityShort-2', '100 000');
243+
await expectTextWithin('ActivityShort-2', '+');
239244

240245
// new tx
241246
await tap('ActivityShort-0');
@@ -265,11 +270,15 @@ describe('@boost - Boost', () => {
265270

266271
// check activity after restore
267272
await swipeFullScreen('up');
268-
await elementById('BoostingIcon').waitForDisplayed();
269-
await elementById('ActivityShort-0').waitForDisplayed();
273+
(await elementByIdWithin('ActivityShort-0','BoostingIcon')).waitForDisplayed();
274+
(await elementByIdWithin('ActivityShort-1','BoostingIcon')).waitForDisplayed();
270275
await tap('ActivityShort-0');
271276
await elementById('BoostedButton').waitForDisplayed();
272277
await elementById('StatusBoosting').waitForDisplayed();
278+
await doNavigationClose();
279+
await tap('ActivityShort-1');
280+
await elementById('BoostedButton').waitForDisplayed();
281+
await elementById('StatusRemoved').waitForDisplayed();
273282

274283
// mine new block
275284
await mineBlocks(rpc, 1);
@@ -281,9 +290,13 @@ describe('@boost - Boost', () => {
281290
await swipeFullScreen('down');
282291
await attemptRefreshOnHomeScreen();
283292
await swipeFullScreen('up');
293+
// TEMP: refresh until proper events available
284294
await elementById('ActivityShort-0').waitForDisplayed();
285295
await tap('ActivityShort-0');
286-
// TEMP: refresh until proper events available
287296
await elementById('StatusConfirmed').waitForDisplayed();
297+
await doNavigationClose();
298+
(await elementByIdWithin('ActivityShort-1', 'BoostingIcon')).waitForDisplayed();
299+
await tap('ActivityShort-1')
300+
await elementById('StatusRemoved').waitForDisplayed();
288301
});
289302
});

0 commit comments

Comments
 (0)