diff --git a/test/specs/boost.e2e.ts b/test/specs/boost.e2e.ts index bf64675..82aff3e 100644 --- a/test/specs/boost.e2e.ts +++ b/test/specs/boost.e2e.ts @@ -79,6 +79,7 @@ describe('@boost - Boost', () => { await elementById('ActivityShort-0').waitForDisplayed(); // no additional boost tx item on iOS, there is one on Android + // https://github.com/synonymdev/bitkit-android/issues/463 const showsBoostTxItem = driver.isAndroid; if (showsBoostTxItem) { await expect(elementById('ActivityShort-1')).toBeDisplayed(); @@ -235,7 +236,11 @@ describe('@boost - Boost', () => { await elementById('BoostingIcon').waitForDisplayed(); await elementById('ActivityShort-0').waitForDisplayed(); await elementById('ActivityShort-1').waitForDisplayed(); - await expect(elementById('ActivityShort-2')).not.toBeDisplayed(); + await elementById('ActivityShort-2').waitForDisplayed(); + await expectTextWithin('ActivityShort-0', '-'); + await expectTextWithin('ActivityShort-1', '-'); + await expectTextWithin('ActivityShort-2', '100 000'); + await expectTextWithin('ActivityShort-2', '+'); // new tx await tap('ActivityShort-0'); @@ -265,11 +270,15 @@ describe('@boost - Boost', () => { // check activity after restore await swipeFullScreen('up'); - await elementById('BoostingIcon').waitForDisplayed(); - await elementById('ActivityShort-0').waitForDisplayed(); + (await elementByIdWithin('ActivityShort-0','BoostingIcon')).waitForDisplayed(); + (await elementByIdWithin('ActivityShort-1','BoostingIcon')).waitForDisplayed(); await tap('ActivityShort-0'); await elementById('BoostedButton').waitForDisplayed(); await elementById('StatusBoosting').waitForDisplayed(); + await doNavigationClose(); + await tap('ActivityShort-1'); + await elementById('BoostedButton').waitForDisplayed(); + await elementById('StatusRemoved').waitForDisplayed(); // mine new block await mineBlocks(rpc, 1); @@ -281,9 +290,13 @@ describe('@boost - Boost', () => { await swipeFullScreen('down'); await attemptRefreshOnHomeScreen(); await swipeFullScreen('up'); + // TEMP: refresh until proper events available await elementById('ActivityShort-0').waitForDisplayed(); await tap('ActivityShort-0'); - // TEMP: refresh until proper events available await elementById('StatusConfirmed').waitForDisplayed(); + await doNavigationClose(); + (await elementByIdWithin('ActivityShort-1', 'BoostingIcon')).waitForDisplayed(); + await tap('ActivityShort-1') + await elementById('StatusRemoved').waitForDisplayed(); }); });