Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new pem for testing (#215) #216

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-----
Loading