diff --git a/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts b/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts index 79fe9a7c..52976556 100644 --- a/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts +++ b/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts @@ -100,7 +100,7 @@ describe('Sign with Keystore', () => { it('should sign transaction with PEM', async () => { const loginData = { selector: GlobalSelectorEnum.pemBtn, - file: GlobalDataEnum.invalidPem, + file: GlobalDataEnum.pemFile, adress: WalletAdressEnum.adress3 }; await login(loginData); diff --git a/wdio/test/utils/actions.ts b/wdio/test/utils/actions.ts index 362adfb3..59db2bc4 100644 --- a/wdio/test/utils/actions.ts +++ b/wdio/test/utils/actions.ts @@ -154,7 +154,7 @@ export const scTransaction = async (type: string) => { await browser.pause(3000); await browser.switchWindow(GlobalDataEnum.walletWindow); if (!(await $(GlobalSelectorEnum.accesPass).isDisplayed())) { - await confimPem(GlobalDataEnum.invalidPem); + await confimPem(GlobalDataEnum.pemFile); await $(GlobalSelectorEnum.signBtn).click(); } else { await confirmPass(); diff --git a/wdio/test/utils/enums.ts b/wdio/test/utils/enums.ts index f26db104..f2943710 100644 --- a/wdio/test/utils/enums.ts +++ b/wdio/test/utils/enums.ts @@ -16,7 +16,7 @@ export enum GlobalDataEnum { errorExplainerMsg = 'Could not download git repository.', invalidGitUrl = 'https://github.com/multiversx/mx-template-dapp', abiFile = 'abi.json', - pemFile = 'pem.pem', + pemFile = 'wdioPem.pem', invalidPem = 'invalidPem.pem', keystoreFile = 'keystore.json', scAdress = 'erd1qqqqqqqqqqqqqpgqk4tchxyrzt5pzunl6qhcnl705yrnplms0n4sa52jkw', @@ -90,7 +90,7 @@ export enum GlobalSelectorEnum { controlledSendingType = 'send-transactions', swapLockType = 'swap-lock', clearBtn = '[data-testid="closeTransactionSuccessBtn"]', - batchBtn ='[data-testid="sign-auto-send"]' + batchBtn = '[data-testid="sign-auto-send"]' } export enum WalletAdressEnum { diff --git a/wdio/test/utils/pem.pem b/wdio/test/utils/pem.pem deleted file mode 100644 index f46a8b54..00000000 --- a/wdio/test/utils/pem.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY for erd1af7fa6l5rnz3p2vzmay08rtpudfkw2dg2d8zpdzyueuztkg4vqasjrmkhj----- -MTZmNjNkM2VjMDg1NjcxYTQzMWJhM2ZkNjJiZjk4N2YxYTliZmY1ZWY2OTlmYzFh -NDdlNjZiMWMwNmFlYzkxN2VhN2M5ZWViZjQxY2M1MTBhOTgyZGY0OGYzOGQ2MWUz -NTM2NzI5YTg1MzRlMjBiNDQ0ZTY3ODI1ZDkxNTYwM2I= ------END PRIVATE KEY for erd1af7fa6l5rnz3p2vzmay08rtpudfkw2dg2d8zpdzyueuztkg4vqasjrmkhj----- \ No newline at end of file diff --git a/wdio/test/utils/wdioPem.pem b/wdio/test/utils/wdioPem.pem new file mode 100644 index 00000000..2ecf4c1a --- /dev/null +++ b/wdio/test/utils/wdioPem.pem @@ -0,0 +1,5 @@ +-----BEGIN PRIVATE KEY for erd1c8dnqn56flfu5jdngl3tq0y667tjqvx0lqz99z3020q93fl7jk9qsxmq57----- +N2ZhN2YxZmZhNTkzMjEzZWFkODRiZDk3MWIwYjhhYjJkOThhNTliMjBlNDQ4OTkx +NjEwZDk5YjNmZjk0MTg2ZmMxZGIzMDRlOWE0ZmQzY2E0OWIzNDdlMmIwM2M5YWQ3 +OTcyMDMwY2ZmODA0NTI4YTJmNTNjMDU4YTdmZTk1OGE= +-----END PRIVATE KEY for erd1c8dnqn56flfu5jdngl3tq0y667tjqvx0lqz99z3020q93fl7jk9qsxmq57-----