From 5b3c52bd9b4550a012b98d15cc4d73ced4b4ca7c Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Mon, 4 Dec 2023 16:45:25 +0800 Subject: [PATCH] reduce typing delay and timeout --- tests/cypress/support/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index 1db86fc..f4cfaa4 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -39,7 +39,7 @@ Cypress.Commands.add('InitTerminal', () => { }) Cypress.Commands.add('typeInCommand', (command) => { cy.get('.xterm-screen', { timeout: 150000 }).type(command, { - delay: 100, + delay: 50, }) }) Cypress.Commands.add('getQuestInfo', (id) => { @@ -109,7 +109,7 @@ Cypress.Commands.add('CompleteStageWithCommands', (stagename) => { }) }) Cypress.Commands.add('CheckTextElement', (id, chText, enText) => { - cy.get(id, { timeout: 100000 }).within(($element) => { + cy.get(id, { timeout: 10000 }).within(($element) => { if (Cypress.env('isCHVersion')) { cy.get($element).should('contain', chText).and('be.visible') } else {