From 8827446b711067772097048224ade213db7f7e8f Mon Sep 17 00:00:00 2001 From: "Lin, Hung-Shin" Date: Fri, 17 Nov 2023 11:50:04 +0800 Subject: [PATCH] fix: add longer timeout for getting xterm --- tests/cypress/support/commands.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index fa0f4b6..8d0aef7 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -13,7 +13,9 @@ Cypress.Commands.add('PrepareForGame', () => { Cypress.env('defaultAccount'), Cypress.env('defaultPassword') ) - cy.get('.xterm-screen').as('Terminaltextbox').should('be.visible') + cy.get('.xterm-screen', { timeout: 150000 }) + .as('Terminaltextbox') + .should('be.visible') cy.findByRole('button', { name: 'Reset' }).click() cy.typeInCommand('clear{enter}') cy.get('@Terminaltextbox', { timeout: 150000 }).should(