mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Add searching element timeout
This commit is contained in:
1 parent
c52b5a53cd
commit
a911d953cd
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user