From a911d953cd3c254a342682ec17402b8863ef7cfc Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Mon, 4 Dec 2023 15:54:26 +0800 Subject: [PATCH] Add searching element timeout --- tests/cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index 338a0c6..1db86fc 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -109,7 +109,7 @@ Cypress.Commands.add('CompleteStageWithCommands', (stagename) => { }) }) Cypress.Commands.add('CheckTextElement', (id, chText, enText) => { - cy.get(id).within(($element) => { + cy.get(id, { timeout: 100000 }).within(($element) => { if (Cypress.env('isCHVersion')) { cy.get($element).should('contain', chText).and('be.visible') } else {