Skip to content

Commit

Permalink
Merge pull request #207 from multiversx/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
arhtudormorar authored Apr 9, 2024
2 parents 2d57819 + e6f8d92 commit ba86161
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@fortawesome/free-solid-svg-icons": "6.5.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@multiversx/sdk-core": "13.0.0-beta.9",
"@multiversx/sdk-dapp": "2.29.0-beta.23",
"@multiversx/sdk-dapp": "2.29.2",
"@multiversx/sdk-network-providers": "2.2.1",
"axios": "1.6.5",
"classnames": "2.3.2",
Expand Down
33 changes: 20 additions & 13 deletions wdio/test/specs/KeystoreScreen/Keystore.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,6 @@ describe('Sign with Keystore', () => {
await pingPongHandler(GlobalSelectorEnum.serviceType);
});

it('should sign swap & lock transactions', async () => {
const loginData = {
selector: GlobalSelectorEnum.keystoreBtn,
file: GlobalDataEnum.keystoreFile,
adress: WalletAdressEnum.adress3
};
await login(loginData);
await batchTransactions(GlobalSelectorEnum.swapLockType);
await validateToast(GlobalSelectorEnum.toastSelector);
await browser.pause(4500);
await validateTransaction(TransactionIndexEnum.swapLock);
});

it('should sign sign & batch ', async () => {
const loginData = {
selector: GlobalSelectorEnum.keystoreBtn,
Expand Down Expand Up @@ -120,3 +107,23 @@ describe('Sign with Keystore', () => {
await pingPongHandler(GlobalSelectorEnum.abiType);
});
});

describe('batch transactions', () => {
beforeEach(async () => {
await browser.url('https://integration.template-dapp.multiversx.com/');
await $(GlobalSelectorEnum.connectBtn).click();
});

it('should sign swap & lock transactions', async () => {
const loginData = {
selector: GlobalSelectorEnum.keystoreBtn,
file: GlobalDataEnum.keystoreFile,
adress: WalletAdressEnum.adress3
};
await login(loginData);
await batchTransactions(GlobalSelectorEnum.swapLockType);
await validateToast(GlobalSelectorEnum.toastSelector);
await browser.pause(4500);
await validateTransaction(TransactionIndexEnum.swapLock);
});
});
3 changes: 2 additions & 1 deletion wdio/test/utils/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function getSelector(selector: string) {
}

export async function uploadFile(fileName: string) {
await browser.pause(1000);
const file = await $('input[type="file"]');
const filePath = `./wdio/test/utils/${fileName}`;
const remoteFilePath = await browser.uploadFile(filePath);
Expand All @@ -39,7 +40,7 @@ export async function login(payload: {
await browser.pause(4500);
await browser.switchWindow(GlobalDataEnum.walletWindow);
await $(payload.selector).click();
await browser.pause(2500);
await browser.pause(3500);
await uploadFile(payload.file);
if (payload.selector === GlobalSelectorEnum.keystoreBtn) {
await confirmPass();
Expand Down
20 changes: 9 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1058,22 +1058,21 @@
json-bigint "1.0.0"
keccak "3.0.2"

"@multiversx/[email protected].0-beta.23":
version "2.29.0-beta.23"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.29.0-beta.23.tgz#f9be4890562abb356387e94ec0c177955ed6dd44"
integrity sha512-C6EEX27MCGYUrSXZBGWvDAKJ8sTYzhXjDi2PcwQSUJ2IGbVSzgwE6jqzXpHTT1LcYq22CIC2Uc4woJ3l5dcdBQ==
"@multiversx/[email protected].2":
version "2.29.2"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.29.2.tgz#617bc681b7e7b719ab03440a4f451fe258f47c7a"
integrity sha512-unZ1Q5uJ9tXWeTf51E5rxXbgEb9tQQSyk93W4z8H5dMwDO7v5Tmilux24tNtPYL9HeW8hCNJebIeAl7a8pK0BA==
dependencies:
"@lifeomic/axios-fetch" "3.0.1"
"@metamask/providers" "16.0.0"
"@multiversx/sdk-core" "13.0.0-beta.9"
"@multiversx/sdk-extension-provider" "3.0.0"
"@multiversx/sdk-hw-provider" "6.4.0"
"@multiversx/sdk-metamask-provider" "0.0.5"
"@multiversx/sdk-native-auth-client" "1.0.7"
"@multiversx/sdk-opera-provider" "1.0.0-alpha.1"
"@multiversx/sdk-wallet" "4.2.0"
"@multiversx/sdk-wallet-connect-provider" "4.1.1"
"@multiversx/sdk-web-wallet-cross-window-provider" "0.0.31"
"@multiversx/sdk-web-wallet-cross-window-provider" "0.0.33"
"@multiversx/sdk-web-wallet-provider" "3.2.1"
"@reduxjs/toolkit" "1.8.2"
bignumber.js "9.x"
Expand Down Expand Up @@ -1185,12 +1184,11 @@
tweetnacl "1.0.3"
uuid "8.3.2"

"@multiversx/[email protected].31":
version "0.0.31"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-web-wallet-cross-window-provider/-/sdk-web-wallet-cross-window-provider-0.0.31.tgz#653a90f8f6f3b25fa05c2ab96ed3d34880b1f1f7"
integrity sha512-Bxyp9yxd6BWnl6uaJ/kd60T0tWT22X9PfWydhSX6fbkFN8RRGVcnG0QU6RPENp6oi1jqIjd8hOSS5UAvE5oXlA==
"@multiversx/[email protected].33":
version "0.0.33"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-web-wallet-cross-window-provider/-/sdk-web-wallet-cross-window-provider-0.0.33.tgz#798fd76050b24fd1ec4c4788da83667420e9f114"
integrity sha512-l2rMzcYji8abySdrrIFkTOPsOYw2UvmlHnJfbU+PpKcwmF0vkwSUIS+XP8FqF00kwDyH2oGHGqZ7aoZRX6wSVw==
dependencies:
"@multiversx/sdk-core" "13.0.0-beta.9"
"@types/jest" "^29.5.11"
"@types/qs" "6.9.10"
qs "6.11.2"
Expand Down

0 comments on commit ba86161

Please sign in to comment.