fix: add longer timeout for getting xterm

This commit is contained in:
Lin, Hung-Shin committed 2023-11-17 11:50:04 +08:00
1 parent e6de58d2ee
commit 8827446b71
1 file changed
+3 -1
+3 -1
View File
@@ -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(