@@ -79,25 +79,16 @@ describe('@boost - Boost', () => {
7979 // check Activity
8080 await elementById ( 'BoostingIcon' ) . waitForDisplayed ( ) ;
8181 await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
82-
83- // no additional boost tx item on iOS, there is one on Android
84- // https://github.com/synonymdev/bitkit-android/issues/463
85- const showsBoostTxItem = driver . isAndroid || driver . isIOS ;
86- if ( showsBoostTxItem ) {
87- await expect ( elementById ( 'ActivityShort-1' ) ) . toBeDisplayed ( ) ;
88- await expect ( elementById ( 'ActivityShort-2' ) ) . not . toBeDisplayed ( ) ;
89- } else {
90- await expect ( elementById ( 'ActivityShort-1' ) ) . not . toBeDisplayed ( ) ;
91- await expect ( elementById ( 'ActivityShort-2' ) ) . not . toBeDisplayed ( ) ;
92- }
82+ await elementById ( 'ActivityShort-1' ) . waitForDisplayed ( ) ;
83+ await expect ( elementById ( 'ActivityShort-2' ) ) . not . toBeDisplayed ( ) ;
84+ await expectTextWithin ( 'ActivityShort-0' , '-' ) ;
85+ await expectTextWithin ( 'ActivityShort-0' , 'Boost Fee' ) ;
86+ await expectTextWithin ( 'ActivityShort-1' , '100 000' ) ;
87+ await expectTextWithin ( 'ActivityShort-1' , '+' ) ;
9388
9489 // orig tx still there
9590 await swipeFullScreen ( 'up' ) ;
96- if ( showsBoostTxItem ) {
97- await tap ( 'ActivityShort-1' ) ;
98- } else {
99- await tap ( 'ActivityShort-0' ) ;
100- }
91+ await tap ( 'ActivityShort-1' ) ;
10192 await expectText ( '100 000' , { strategy : 'contains' } ) ;
10293 await elementById ( 'BoostedButton' ) . waitForDisplayed ( ) ;
10394 await elementById ( 'StatusBoosting' ) . waitForDisplayed ( ) ;
@@ -110,17 +101,14 @@ describe('@boost - Boost', () => {
110101 console . info ( { parentTxId } ) ;
111102 await doNavigationClose ( ) ;
112103
113- if ( showsBoostTxItem ) {
114- // new tx
115- await tap ( 'ActivityShort-0' ) ;
116- await tap ( 'ActivityTxDetails' ) ;
117- const boostTxId = await getTextUnder ( 'TXID' ) ;
118- console . info ( { newTxId : boostTxId } ) ;
119- await expect ( origTxId !== boostTxId ) . toBe ( true ) ;
120- // TODO: not implemented yet
121- // await expect(boostTxId === parentTxId).toBe(true);
122- await doNavigationClose ( ) ;
123- }
104+ // new tx: Boost Fee
105+ await tap ( 'ActivityShort-0' ) ;
106+ await tap ( 'ActivityTxDetails' ) ;
107+ const boostTxId = await getTextUnder ( 'TXID' ) ;
108+ console . info ( { newTxId : boostTxId } ) ;
109+ await expect ( origTxId !== boostTxId ) . toBe ( true ) ;
110+ await expect ( boostTxId === parentTxId ) . toBe ( true ) ;
111+ await doNavigationClose ( ) ;
124112
125113 // wipe & restore
126114 const seed = await getSeed ( ) ;
@@ -130,13 +118,8 @@ describe('@boost - Boost', () => {
130118 // check activity after restore
131119 await swipeFullScreen ( 'up' ) ;
132120 await elementById ( 'BoostingIcon' ) . waitForDisplayed ( ) ;
133- if ( showsBoostTxItem ) {
134- await elementById ( 'ActivityShort-1' ) . waitForDisplayed ( ) ;
135- await tap ( 'ActivityShort-1' ) ;
136- } else {
137- await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
138- await tap ( 'ActivityShort-0' ) ;
139- }
121+ await elementById ( 'ActivityShort-1' ) . waitForDisplayed ( ) ;
122+ await tap ( 'ActivityShort-1' ) ;
140123 await elementById ( 'BoostedButton' ) . waitForDisplayed ( ) ;
141124 await elementById ( 'StatusBoosting' ) . waitForDisplayed ( ) ;
142125
@@ -147,17 +130,13 @@ describe('@boost - Boost', () => {
147130
148131 // check activity item after mine
149132 await elementById ( 'ActivityShort-0' ) . waitForDisplayed ( ) ;
150- if ( showsBoostTxItem ) {
151- await elementById ( 'ActivityShort-1' ) . waitForDisplayed ( ) ;
152- }
133+ await elementById ( 'ActivityShort-1' ) . waitForDisplayed ( ) ;
153134
154135 await tap ( 'ActivityShort-0' ) ;
155136 await elementById ( 'StatusConfirmed' ) . waitForDisplayed ( ) ;
156137 await doNavigationClose ( ) ;
157- if ( showsBoostTxItem ) {
158- await tap ( 'ActivityShort-1' ) ;
159- await elementById ( 'StatusConfirmed' ) . waitForDisplayed ( ) ;
160- }
138+ await tap ( 'ActivityShort-1' ) ;
139+ await elementById ( 'StatusConfirmed' ) . waitForDisplayed ( ) ;
161140 } ) ;
162141
163142 ciIt ( '@boost_2 - Can do RBF' , async ( ) => {
0 commit comments