From 20eb9215264c5aa1b88b8d1dda2eba5d73f28a9b Mon Sep 17 00:00:00 2001 From: katspaugh <381895+katspaugh@users.noreply.github.com> Date: Tue, 19 Sep 2023 09:20:31 +0200 Subject: [PATCH] Tests: fix nonce editing in create_tx (#2525) * Tests: fix nonce editing in create_tx * Fix batch_tx --- cypress/e2e/pages/batches.pages.js | 2 +- cypress/e2e/pages/create_tx.pages.js | 2 +- cypress/e2e/smoke/create_tx.cy.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/pages/batches.pages.js b/cypress/e2e/pages/batches.pages.js index f614fb93ef..77829aeaf5 100644 --- a/cypress/e2e/pages/batches.pages.js +++ b/cypress/e2e/pages/batches.pages.js @@ -44,7 +44,7 @@ function fillTransactionData(EOA, amount) { } function setNonceAndProceed(currentNonce) { - cy.get(nonceInput).clear().type(currentNonce, { force: true }).type('{enter}', { force: true }) + cy.get(nonceInput).clear().type(currentNonce, { force: true }).blur() cy.contains(executeBtn).scrollIntoView() } diff --git a/cypress/e2e/pages/create_tx.pages.js b/cypress/e2e/pages/create_tx.pages.js index fc2a0905be..52157d521f 100644 --- a/cypress/e2e/pages/create_tx.pages.js +++ b/cypress/e2e/pages/create_tx.pages.js @@ -86,7 +86,7 @@ export function verifyNativeTokenTransfer() { } export function changeNonce(value) { - cy.get(nonceInput).clear().type(value, { force: true }).type('{enter}', { force: true }) + cy.get(nonceInput).clear().type(value, { force: true }).blur() } export function verifyConfirmTransactionData() { diff --git a/cypress/e2e/smoke/create_tx.cy.js b/cypress/e2e/smoke/create_tx.cy.js index 43c27090ca..ab7d6b3d29 100644 --- a/cypress/e2e/smoke/create_tx.cy.js +++ b/cypress/e2e/smoke/create_tx.cy.js @@ -11,7 +11,7 @@ describe('Queue a transaction on 1/N', () => { main.acceptCookies() }) - it('should create and queue a transaction', () => { + it('should create a new send token transaction', () => { createtx.clickOnNewtransactionBtn() createtx.clickOnSendTokensBtn() createtx.typeRecipientAddress(constants.EOA) @@ -22,7 +22,7 @@ describe('Queue a transaction on 1/N', () => { createtx.clickOnNextBtn() }) - it('should create a queued transaction', () => { + it('should review, edit and submit the tx', () => { createtx.verifySubmitBtnIsEnabled() cy.wait(1000) createtx.verifyNativeTokenTransfer() @@ -35,7 +35,7 @@ describe('Queue a transaction on 1/N', () => { createtx.clickOnSignTransactionBtn() }) - it('should click the notification and see the transaction queued', () => { + it('should click on the notification and see the transaction queued', () => { createtx.waitForProposeRequest() createtx.clickViewTransaction() createtx.verifySingleTxPage()