@@ -272,7 +272,7 @@ test.describe('SH Wallet checks', () => {
272
272
const page2Promise = page . waitForEvent ( 'popup' ) ;
273
273
await page . locator ( '//div[@class="account-row"]' ) . click ( ) ;
274
274
const page2 = await page2Promise ;
275
- let aeScanBalance : string = await page2 . locator ( '//tr[@class="account-details-panel__row"]// div[@class="price-label"]' ) . first ( )
275
+ let aeScanBalance : string = await page2 . locator ( '//div[@class="price-label"]//div//span ' ) . first ( )
276
276
. textContent ( ) as string ;
277
277
// Convert the balance string from aeScan
278
278
// to the same format as it is in the Wallet account details page
@@ -313,7 +313,7 @@ test.describe('SH Wallet checks', () => {
313
313
await page . locator ( '//div[@class="account-row"]' ) . click ( ) ;
314
314
const page2 = await page2Promise ;
315
315
await page . waitForTimeout ( 5000 ) ;
316
- let aeScanBalance : string = await page2 . locator ( '//tr[@class="account-details-panel__row"]// div[@class="price-label"]' ) . first ( )
316
+ let aeScanBalance : string = await page2 . locator ( '//div[@class="price-label"]//div//span ' ) . first ( )
317
317
. textContent ( ) as string ;
318
318
// Convert the balance string from aeScan
319
319
// to the same format as it is in the Wallet account details page
@@ -678,25 +678,27 @@ test.describe('SH Wallet checks', () => {
678
678
// Open send and make transaction
679
679
await page . getByRole ( 'button' , { name : 'Send assets to others' } ) . click ( ) ;
680
680
await page . locator ( '//textarea[@data-cy="textarea"]' ) . fill ( secAeAccAddress ) ;
681
+ await page . keyboard . press ( 'Enter' ) ;
681
682
await page . locator ( '//input[@name="amount"]' ) . fill ( txnValue . toString ( ) ) ;
682
683
// Read txn fee value
683
684
await page . waitForTimeout ( 3000 ) ;
684
685
const txnFeeValueStr = await page . locator ( '//span[@data-cy="review-fee"]//span[@class="amount"]' ) . textContent ( ) as string ;
685
686
const txnFeeValue = parseFloat ( txnFeeValueStr ) ;
686
687
await page . locator ( '//button[@data-cy="next-step-button"]' ) . click ( ) ;
687
688
await page . waitForTimeout ( 500 ) ;
688
- await eyes . check ( 'Review transaction' , Target . window ( ) . fully ( ) ) ;
689
689
690
690
// Go back check values for editing
691
691
await page . getByRole ( 'button' , { name : 'Edit' } ) . click ( ) ;
692
- await expect ( page . locator ( '//textarea [@data-cy="textarea"] ' ) ) . toHaveValue ( secAeAccAddress ) ;
692
+ await expect ( page . locator ( '//label [@data-cy="input-wrapper"]//div[@class="address-truncated-chunks"] ' ) ) . toContainText ( 'ak_2Ek···Up9' ) ;
693
693
await expect ( page . locator ( '//input[@name="amount"]' ) ) . toHaveValue ( txnValue . toString ( ) ) ;
694
694
await page . waitForTimeout ( 5000 ) ;
695
695
await page . locator ( '//button[@data-cy="next-step-button"]' ) . click ( ) ;
696
696
697
697
// Open Review transaction screen. Check address and ae amounts
698
698
await expect ( page . locator ( '#app-wrapper' ) ) . toContainText ( aeAccAddress ) ;
699
+ await page . getByRole ( 'button' , { name : 'Show 1 recipients ' } ) . click ( ) ;
699
700
await expect ( page . locator ( '#app-wrapper' ) ) . toContainText ( secAeAccAddress ) ;
701
+ await eyes . check ( 'Review transaction' , Target . window ( ) . fully ( ) ) ;
700
702
await expect ( page . getByTestId ( 'review-amount' ) ) . toContainText ( `${ txnValue . toString ( ) } AE` ) ;
701
703
await page . waitForTimeout ( 500 ) ;
702
704
await expect ( page . locator ( '//div[@class="transfer-review-base transfer-review"]//span[@data-cy="review-fee"]//span[@class="amount"]' ) ) . toContainText ( txnFeeValueStr ) ;
@@ -900,7 +902,7 @@ test.describe('SH Wallet checks', () => {
900
902
await page . getByRole ( 'button' , { name : 'Show multisig vaults' } ) . click ( ) ;
901
903
await revokePendingProposal ( page , expect ) ;
902
904
// Check Show multisig screen
903
- await expect ( page . locator ( '//span[text()="ak_2Mw "]' ) ) . toBeVisible ( { timeout : 12000 } ) ;
905
+ await expect ( page . locator ( '//span[text()="ak_2Hj "]' ) ) . toBeVisible ( { timeout : 12000 } ) ;
904
906
await expect . soft ( page . getByText ( 'Total in multisig vaults' ) ) . toBeVisible ( ) ;
905
907
await expect ( page . getByRole ( 'button' , { name : 'Receive to multisig vault' } ) ) . toBeVisible ( ) ;
906
908
await expect ( page . getByRole ( 'button' , { name : 'Propose Tx to other signers' } ) ) . toBeVisible ( ) ;
@@ -940,7 +942,6 @@ test.describe('SH Wallet checks', () => {
940
942
await revokePendingProposal ( page , expect ) ;
941
943
await page . locator ( '//a[@data-cy="account-card-base"]//div[text()="Multisig vault"]' ) . nth ( 0 ) . click ( ) ;
942
944
// Check receive screen
943
- await expect ( page . locator ( '//span[text()="ak_2Mw"]' ) ) . toBeVisible ( { timeout : 10000 } ) ;
944
945
await page . locator ( '//div[@class="horizontal-scroll buttons"]//button[@data-cy="receive"]' ) . click ( ) ;
945
946
await expect ( page . getByRole ( 'heading' ) ) . toContainText ( 'Receive funds to multisig vault' ) ;
946
947
// Enter some number into amount field so the link under QR code will be
@@ -976,7 +977,7 @@ test.describe('SH Wallet checks', () => {
976
977
// Check if a transaction proposal is awaiting
977
978
await revokePendingProposal ( page , expect ) ;
978
979
// Check propose txn screen
979
- await expect ( page . locator ( '//span[text()="ak_2Mw "]' ) ) . toBeVisible ( { timeout : 15000 } ) ;
980
+ await expect ( page . locator ( '//span[text()="ak_2Hj "]' ) ) . toBeVisible ( { timeout : 15000 } ) ;
980
981
await page . locator ( '//a[@data-cy="account-card-base"]//div[text()="Multisig vault"]' ) . nth ( 0 ) . click ( ) ;
981
982
await page . locator ( '//div[@class="horizontal-scroll buttons"]//span[text()="Propose Tx"]' ) . click ( ) ;
982
983
await expect ( page . getByRole ( 'heading' ) ) . toContainText ( 'Multisig transaction proposal' , { timeout : 8000 } ) ;
@@ -998,8 +999,10 @@ test.describe('SH Wallet checks', () => {
998
999
. toContainText ( 'This field is required' ) ;
999
1000
// Incorrect address string
1000
1001
await page . locator ( '//textarea[@data-cy="textarea"]' ) . fill ( '12345678' ) ;
1002
+ await page . keyboard . press ( 'Enter' ) ;
1001
1003
await expect ( page . locator ( '//div[@data-cy="address"]//label[@data-cy="input-field-message"]' ) )
1002
1004
. toContainText ( 'Invalid address or .chain name' ) ;
1005
+ await page . getByTestId ( 'clear-address-button' ) . nth ( 1 ) . click ( ) ;
1003
1006
// Send amount over max available
1004
1007
await page . locator ( '//input[@name="amount"]' ) . fill ( '12345678' ) ;
1005
1008
await page . locator ( '//textarea[@data-cy="textarea"]' ) . click ( ) ;
@@ -1045,7 +1048,7 @@ test.describe('SH Wallet checks', () => {
1045
1048
// Multisig Tx proposal details after sending
1046
1049
await expect ( page . getByTestId ( 'loader' ) ) . not . toBeVisible ( { timeout : 25000 } ) ;
1047
1050
await expect ( page . locator ( '//div[@class="consensus"]//div[@class="info-box success"]' ) ) . toContainText ( 'Transaction has been successfully sent.' , { timeout : 20000 } ) ;
1048
- await page . waitForTimeout ( 500 ) ;
1051
+ await page . waitForTimeout ( 800 ) ;
1049
1052
await expect ( page . locator ( '//div[@class="payload-text"]' ) ) . toContainText ( 'Hello. This is a test!' ) ;
1050
1053
await eyes . check ( 'Multisig Tx proposal details' , Target . region ( page . locator ( '//div[@class="multisig-proposal-details"]/parent::ion-content' ) ) . fully ( ) ) ;
1051
1054
} ) ;
@@ -1059,7 +1062,7 @@ test.describe('SH Wallet checks', () => {
1059
1062
// Check if a transaction proposal is awaiting
1060
1063
await revokePendingProposal ( page , expect ) ;
1061
1064
// Select current multisig account
1062
- await expect ( page . locator ( '//span[text()="ak_2Mw "]' ) ) . toBeVisible ( { timeout : 10000 } ) ;
1065
+ await expect ( page . locator ( '//span[text()="ak_2Hj "]' ) ) . toBeVisible ( { timeout : 10000 } ) ;
1063
1066
await page . locator ( '//a[@data-cy="account-card-base"]//div[text()="Multisig vault"]' ) . nth ( 0 ) . click ( ) ;
1064
1067
// Check propose txn screen
1065
1068
await page . locator ( '//div[@class="horizontal-scroll buttons"]//span[text()="Propose Tx"]' ) . click ( ) ;
@@ -1095,7 +1098,7 @@ test.describe('SH Wallet checks', () => {
1095
1098
// Check if a transaction proposal is awaiting
1096
1099
await revokePendingProposal ( page , expect ) ;
1097
1100
// Select current multisig account
1098
- await expect ( page . locator ( '//span[text()="ak_2Mw "]' ) ) . toBeVisible ( { timeout : 12000 } ) ;
1101
+ await expect ( page . locator ( '//span[text()="ak_2Hj "]' ) ) . toBeVisible ( { timeout : 12000 } ) ;
1099
1102
await page . locator ( '//a[@data-cy="account-card-base"]//div[text()="Multisig vault"]' ) . nth ( 0 ) . click ( ) ;
1100
1103
// Check propose txn screen
1101
1104
await page . locator ( '//div[@class="horizontal-scroll buttons"]//span[text()="Propose Tx"]' ) . click ( ) ;
@@ -1148,10 +1151,10 @@ test.describe('SH Wallet checks', () => {
1148
1151
await page . waitForTimeout ( 5000 ) ;
1149
1152
await page . locator ( '//div[@class="claim"]//div[@class="label-text"]' ) . focus ( ) ;
1150
1153
await page . locator ( '//div[@class="claim"]//button' ) . nth ( 1 ) . click ( ) ;
1151
- await page . locator ( '//button[@data-cy="accept"]' ) . click ( ) ;
1152
- await page . locator ( '//button[@data-cy="accept"]' ) . click ( { timeout : 20000 } ) ;
1154
+ // await page.locator('//button[@data-cy="accept"]').click();
1155
+ // await page.locator('//button[@data-cy="accept"]').click({ timeout: 20000 });
1153
1156
// Chosen chain name should appear in the Names list with status pending
1154
- await expect ( page . getByText ( newChainName ) ) . toBeVisible ( { timeout : 25000 } ) ;
1157
+ await expect ( page . getByText ( newChainName ) ) . toBeVisible ( { timeout : 35000 } ) ;
1155
1158
await expect ( page . locator ( '//div[@class="pending"]' ) ) . toBeVisible ( ) ;
1156
1159
// Currently the pending status take very long
1157
1160
// await expect.soft(page.locator('//span[text()="Name update successful!"]'))
@@ -1164,7 +1167,7 @@ test.describe('SH Wallet checks', () => {
1164
1167
1165
1168
await switchToTestnet ( page , expect ) ;
1166
1169
await page . getByTestId ( 'account-card-base' ) . first ( ) . click ( ) ;
1167
- await page . locator ( '//div[@data-cy="list"]//a' ) . isVisible ( ) ;
1170
+ await page . locator ( '//div[@data-cy="list"]//a' ) . first ( ) . isVisible ( ) ;
1168
1171
await page . waitForTimeout ( 2000 ) ;
1169
1172
await page . locator ( '//div[@data-cy="list"]//a' ) . last ( ) . focus ( ) ;
1170
1173
await expect ( page . locator ( '//div[@class="back-to-top-btn-container"]//button' ) ) . toBeVisible ( ) ;
0 commit comments