Skip to content

Commit

Permalink
add new pem for testing (#215) (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
tudorgabriel committed Apr 17, 2024
1 parent 92a1ced commit 50f65fc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion wdio/test/specs/KeystoreScreen/Keystore.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion wdio/test/utils/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions wdio/test/utils/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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 {
Expand Down
5 changes: 0 additions & 5 deletions wdio/test/utils/pem.pem

This file was deleted.

5 changes: 5 additions & 0 deletions wdio/test/utils/wdioPem.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY for erd1c8dnqn56flfu5jdngl3tq0y667tjqvx0lqz99z3020q93fl7jk9qsxmq57-----
N2ZhN2YxZmZhNTkzMjEzZWFkODRiZDk3MWIwYjhhYjJkOThhNTliMjBlNDQ4OTkx
NjEwZDk5YjNmZjk0MTg2ZmMxZGIzMDRlOWE0ZmQzY2E0OWIzNDdlMmIwM2M5YWQ3
OTcyMDMwY2ZmODA0NTI4YTJmNTNjMDU4YTdmZTk1OGE=
-----END PRIVATE KEY for erd1c8dnqn56flfu5jdngl3tq0y667tjqvx0lqz99z3020q93fl7jk9qsxmq57-----

0 comments on commit 50f65fc

Please sign in to comment.