1- import { test , expect } from '@playwright/test' ;
2-
1+ import { expect , test } from '@playwright/test' ;
32import * as TestActions from '../support' ;
4- import { TestDataEnums , SelectorsEnum } from '../support/testdata' ;
3+ import { SelectorsEnum , TestDataEnums } from '../support/testdata' ;
54
65const keystoreConfig = {
7- keystore : TestDataEnums . keystoreFilePath ,
8- password : TestDataEnums . keystoreFilePassword
6+ keystore : TestDataEnums . keystoreFilePath1 ,
7+ password : TestDataEnums . keystorePassword
98} ;
109
1110const pemConfig = {
12- pem : TestDataEnums . pemFilePath
11+ pem : TestDataEnums . pemFilePath1
1312} ;
1413
1514test . describe ( 'Connect a wallet' , ( ) => {
1615 // Connect wallet tests verify wallet connection functionality
17- // Each test focuses on a specific aspect of the wallet connection process
1816
1917 test . beforeEach ( async ( { page } ) => {
2018 await TestActions . navigateToConnectWallet ( page ) ;
@@ -26,7 +24,7 @@ test.describe('Connect a wallet', () => {
2624
2725 await TestActions . checkConnectionToWallet (
2826 page ,
29- TestDataEnums . keystoreWalletAddress
27+ TestDataEnums . keystoreWalletAddress1
3028 ) ;
3129 } ) ;
3230 } ) ;
@@ -37,7 +35,7 @@ test.describe('Connect a wallet', () => {
3735
3836 await TestActions . checkConnectionToWallet (
3937 page ,
40- TestDataEnums . pemWalletAddress
38+ TestDataEnums . pemWalletAddress1
4139 ) ;
4240 } ) ;
4341 } ) ;
@@ -46,7 +44,7 @@ test.describe('Connect a wallet', () => {
4644 test ( 'should handle missing password for keystore' , async ( { page } ) => {
4745 // Test with keystore but no password
4846 const invalidKeystoreConfig = {
49- keystore : TestDataEnums . keystoreFilePath ,
47+ keystore : TestDataEnums . keystoreFilePath1 ,
5048 password : undefined
5149 } ;
5250
@@ -66,7 +64,10 @@ test.describe('Connect a wallet', () => {
6664 } ) => {
6765 // Connect with keystore
6866 await TestActions . navigateToConnectWallet ( page ) ;
69- await TestActions . connectWebWallet ( { page, loginMethod : keystoreConfig } ) ;
67+ await TestActions . connectWebWallet ( {
68+ page,
69+ loginMethod : keystoreConfig
70+ } ) ;
7071
7172 // Verify the topInfo container is visible
7273 const topInfoContainer = page . getByTestId ( SelectorsEnum . topInfoContainer ) ;
@@ -78,7 +79,7 @@ test.describe('Connect a wallet', () => {
7879 ) ;
7980 await expect ( addressElement ) . toBeVisible ( ) ;
8081 await expect ( addressElement ) . toContainText (
81- TestDataEnums . keystoreWalletAddress
82+ TestDataEnums . keystoreWalletAddress1
8283 ) ;
8384
8485 // Verify herotag section is present and should be N/A
0 commit comments