Add searching element timeout

This commit is contained in:
Annie Huang committed 2023-12-04 15:54:26 +08:00
1 parent c52b5a53cd
commit a911d953cd
1 file changed
+1 -1
+1 -1
View File
@@ -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 {