diff --git a/.github/workflows/cypress-run.yml b/.github/workflows/cypress-run.yml index 99d010924..4424ab88b 100644 --- a/.github/workflows/cypress-run.yml +++ b/.github/workflows/cypress-run.yml @@ -20,7 +20,7 @@ jobs: project: ${{ fromJSON(inputs.projects) }} name: ${{ matrix.project }} runs-on: self-hosted-runner - timeout-minutes: 100 + timeout-minutes: 120 steps: # Checks if skip cache was requested - name: Set skip-nx-cache flag diff --git a/apps/governance-e2e/src/integration/flow/withdrawal-flow.cy.ts b/apps/governance-e2e/src/integration/flow/withdrawal-flow.cy.ts index 30c480d5c..61a469e87 100644 --- a/apps/governance-e2e/src/integration/flow/withdrawal-flow.cy.ts +++ b/apps/governance-e2e/src/integration/flow/withdrawal-flow.cy.ts @@ -29,6 +29,7 @@ const toastPanel = 'toast-panel'; const toastClose = 'toast-close'; const withdrawalDialogContent = 'dialog-content'; const toastCompleteWithdrawal = 'toast-complete-withdrawal'; +const scrollBar = '.ag-body-horizontal-scroll-viewport'; const usdtName = 'USDC (local)'; const usdcEthAddress = '0x1b8a1B6CBE5c93609b46D1829Cc7f3Cb8eeE23a0'; const usdcSymbol = 'tUSDC'; @@ -199,20 +200,17 @@ context( ); cy.getByTestId(toastClose).click(); }); - cy.get(tableTxHash) - .eq(1) - .should('have.text', 'Complete withdrawal') - .parent() - .within(() => { - cy.get(tableAssetSymbol).should('have.text', usdcSymbol); - cy.get(tableAmount).should('have.text', '110.00'); - cy.get(tableReceiverAddress) - .find('a') - .should('have.attr', 'href') - .and('contain', 'https://sepolia.etherscan.io/address/'); - cy.get(tableCreatedTimeStamp).should('not.be.empty'); - }); + cy.get("[row-id='0']").within(() => { + cy.get(tableAssetSymbol).should('have.text', usdcSymbol); + cy.get(tableAmount).should('have.text', '110.00'); + cy.get(tableReceiverAddress) + .find('a') + .should('have.attr', 'href') + .and('contain', 'https://sepolia.etherscan.io/address/'); + cy.get(tableCreatedTimeStamp).should('not.be.empty'); + }); ethereumWalletConnect(); + cy.get(scrollBar).scrollTo('right'); cy.getByTestId(completeWithdrawalButton).first().click(); cy.getByTestId(toast) .last(txTimeout) diff --git a/apps/governance-e2e/src/support/staking.functions.ts b/apps/governance-e2e/src/support/staking.functions.ts index 236840309..db3a3cdef 100644 --- a/apps/governance-e2e/src/support/staking.functions.ts +++ b/apps/governance-e2e/src/support/staking.functions.ts @@ -84,9 +84,10 @@ export function stakingPageAssociateTokens( .length ) { cy.get(tokenInputApprove, txTimeout).should('be.enabled').click(); - cy.contains('Approve $VEGA Tokens for staking on Vega').should( - 'be.visible' - ); + cy.contains( + 'Approve $VEGA Tokens for staking on Vega', + txTimeout + ).should('be.visible'); cy.contains( 'Approve $VEGA Tokens for staking on Vega', txTimeout