@@ -109,7 +109,7 @@ describe('@lightning - Lightning', () => {
109109 // check channel status
110110 await checkChannelStatus ( ) ;
111111
112- // send funds to LDK, 0 invoice
112+ console . info ( 'receive 10k sats from LND (non-edited invoice)' ) ;
113113 const receive = await getReceiveAddress ( 'lightning' ) ;
114114 await swipeFullScreen ( 'down' ) ;
115115 const response = await lnd . sendPaymentSync ( { paymentRequest : receive , amt : '10000' } ) ;
@@ -127,7 +127,7 @@ describe('@lightning - Lightning', () => {
127127 await expect ( totalBalance ) . toHaveText ( '11 000' ) ; // 1k onchain + 10k lightning
128128 await expectTextWithin ( 'ActivitySpending' , '10 000' ) ;
129129
130- // send funds to LDK, 111 sats invoice
130+ console . info ( 'receive 111 sats from LND, (edited invoice with amt= 111, note and tag)' ) ;
131131 await tap ( 'Receive' ) ;
132132 await sleep ( 1000 ) ;
133133 await tap ( 'SpecifyInvoiceButton' ) ;
@@ -154,30 +154,37 @@ describe('@lightning - Lightning', () => {
154154 await expect ( totalBalance ) . toHaveText ( '11 111' ) ; // 1k onchain + 10 111 lightning
155155 await expectTextWithin ( 'ActivitySpending' , '10 111' ) ;
156156
157- // send funds to LND, 0 invoice
157+ await console . info ( ' send lightning payment (lightning invoice with no amount and note)' ) ;
158158 const note2 = 'zero' ;
159159 const { paymentRequest : invoice1 } = await lnd . addInvoice ( {
160160 memo : note2 ,
161161 } ) ;
162+ await console . info ( { invoice1 } ) ;
162163 await enterAddress ( invoice1 ) ;
163164 await multiTap ( 'N1' , 3 ) ;
164165 await tap ( 'ContinueAmount' ) ;
166+ await console . info ( 'I can edit the amount on Review screen' ) ;
167+ await tap ( 'ReviewAmount-primary' ) ;
168+ await tap ( 'ContinueAmount' ) ;
165169 await dragOnElement ( 'GRAB' , 'right' , 0.95 ) ; // Swipe to confirm
166170 await elementById ( 'SendSuccess' ) . waitForDisplayed ( ) ;
167171 await tap ( 'Close' ) ;
168172 await expect ( totalBalance ) . toHaveText ( '11 000' ) ; // 1k onchain + 10k lightning
169173 await expectTextWithin ( 'ActivitySpending' , '10 000' ) ;
170174
171- // send funds to LND, 10000 invoice
175+ await console . info ( ' send lightning payment (lightning invoice with amount = 1000) and manually added tag' ) ;
172176 const value = '1000' ;
173177 const { paymentRequest : invoice4 } = await lnd . addInvoice ( {
174178 value : value ,
175179 } ) ;
176- await enterAddress ( invoice4 ) ;
180+ await console . info ( { invoice4 } ) ;
181+ await enterAddress ( invoice4 , { acceptCameraPermission : false } ) ;
177182 // Review & Send
178183 const reviewAmt = await elementByIdWithin ( 'ReviewAmount-primary' , 'MoneyText' ) ;
179184 await reviewAmt . waitForDisplayed ( ) ;
180185 await expect ( reviewAmt ) . toHaveText ( '1 000' ) ;
186+ await console . info ( 'I cannot edit the amount on Review screen' ) ;
187+ await tap ( 'ReviewAmount-primary' ) ;
181188 await tap ( 'TagsAddSend' ) ;
182189 await typeText ( 'TagInputSend' , 'stag' ) ;
183190 await tap ( 'SendTagsSubmit' ) ;
@@ -234,13 +241,15 @@ describe('@lightning - Lightning', () => {
234241 // filter by receive tag
235242 await tap ( 'Tab-all' ) ;
236243 await tap ( 'TagsPrompt' ) ;
244+ await sleep ( 500 ) ;
237245 await tap ( 'Tag-rtag' ) ;
238246 await expectTextWithin ( 'Activity-1' , '+' ) ;
239247 await elementById ( 'Activity-2' ) . waitForDisplayed ( { reverse : true } ) ;
240248 await tap ( 'Tag-rtag-delete' ) ;
241249
242250 // filter by send tag
243251 await tap ( 'TagsPrompt' ) ;
252+ await sleep ( 500 ) ;
244253 await tap ( 'Tag-stag' ) ;
245254 await expectTextWithin ( 'Activity-1' , '-' ) ;
246255 await elementById ( 'Activity-2' ) . waitForDisplayed ( { reverse : true } ) ;
0 commit comments