@@ -273,10 +273,13 @@ describe('SEND feature', async () => {
273
273
'Available balance and Max send amount are equal for ethereum'
274
274
) . contains ( sendAmount )
275
275
} )
276
- it ( 'Unstoppable Domains Send [PULL_REQUEST_TEST]' , async ( ) => {
277
- const assetName = 'ETH '
276
+ it ( 'Unstoppable Domains Send from AVAX to shaista.blockchain [PULL_REQUEST_TEST]' , async ( ) => {
277
+ const assetName = 'AVAX '
278
278
const coinsToSend = '0.00001'
279
- const domainName = 'shaista.blockchain'
279
+ const domainDetails = {
280
+ name : 'shaista.blockchain' ,
281
+ address : '0xaDa3...3023'
282
+ }
280
283
281
284
await overviewPage . SelectAssetFromOverview ( page , assetName )
282
285
console . log ( 'Selected asset from overview' )
@@ -289,11 +292,17 @@ describe('SEND feature', async () => {
289
292
// Enter send amount (or) coins
290
293
await sendPage . EnterSendAmount ( page , coinsToSend )
291
294
// Send address
292
- await sendPage . EnterSendToAddress ( page , domainName )
295
+ await sendPage . EnterSendToAddress ( page , domainDetails . name )
293
296
// Click Send Review Button
294
297
await page . waitForSelector ( '#send_review_button' , { visible : true } )
298
+ const isReviewButtonDisabled = await page . $eval ( '#send_review_button' , ( el ) => el . disabled )
299
+ expect ( isReviewButtonDisabled , 'Send Review button should be enabled' ) . to . be . false
300
+ console . log ( 'Send review button is enabled so clicking it' )
295
301
try {
296
302
await page . click ( '#send_review_button' , { clickCount : 5 } )
303
+ const confirmAddress = await page . $eval ( '#confirm-address' , ( el ) => el . innerText )
304
+ expect ( confirmAddress ) . contains ( domainDetails . address )
305
+ console . log ( 'Confirm address is correct' )
297
306
await page . waitForSelector ( '#send_button_confirm' , { visible : true , timeout : 60000 } )
298
307
} catch ( e ) {
299
308
if ( e instanceof puppeteer . errors . TimeoutError ) {
@@ -338,6 +347,6 @@ describe('SEND feature', async () => {
338
347
// validate domain name in transaction details
339
348
await page . waitForSelector ( '#transaction_details_send_to_link' , { visible : true } )
340
349
const sedToDetails = await page . $eval ( '#transaction_details_send_to_link' , el => el . textContent )
341
- expect ( sedToDetails , 'Send to transaction details should have unstoppabledomain name' ) . contain ( domainName )
350
+ expect ( sedToDetails , 'Send to transaction details should have unstoppabledomain name' ) . contain ( "shai" )
342
351
} )
343
352
} )
0 commit comments