From 6d4b3d989a07f7c26e1a1b99ca7d20fb3b1e1482 Mon Sep 17 00:00:00 2001 From: tudorgabriel Date: Wed, 17 Apr 2024 14:13:10 +0300 Subject: [PATCH] add new pem for testing (#215) --- wdio/test/specs/KeystoreScreen/Keystore.e2e.ts | 2 +- wdio/test/utils/actions.ts | 2 +- wdio/test/utils/enums.ts | 4 ++-- wdio/test/utils/pem.pem | 5 ----- wdio/test/utils/wdioPem.pem | 5 +++++ 5 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 wdio/test/utils/pem.pem create mode 100644 wdio/test/utils/wdioPem.pem 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-----