diff --git a/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts b/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts index adb62279..79fe9a7c 100644 --- a/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts +++ b/wdio/test/specs/KeystoreScreen/Keystore.e2e.ts @@ -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, @@ -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); + }); +}); diff --git a/wdio/test/utils/actions.ts b/wdio/test/utils/actions.ts index 204325b7..ae1b7ac6 100644 --- a/wdio/test/utils/actions.ts +++ b/wdio/test/utils/actions.ts @@ -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); @@ -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();