From f4516777bb95ca05f8ba7ecf459c5c85e23c73c1 Mon Sep 17 00:00:00 2001 From: bzp2010 Date: Tue, 28 Sep 2021 20:35:33 +0800 Subject: [PATCH] feat: try to reduce time cost --- web/cypress/support/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/cypress/support/commands.js b/web/cypress/support/commands.js index 5dde583f0f..e50a49a880 100644 --- a/web/cypress/support/commands.js +++ b/web/cypress/support/commands.js @@ -73,7 +73,7 @@ Cypress.Commands.add('configurePlugin', ({ name, cases }) => { .invoke('text') .then((text) => { if (text === 'Form') { - cy.wait(5000); + cy.wait(1000); cy.get(domSelector.monacoMode).should('be.visible'); cy.get(domSelector.monacoMode).click(); cy.get(domSelector.selectDropdown).should('be.visible'); @@ -92,7 +92,7 @@ Cypress.Commands.add('configurePlugin', ({ name, cases }) => { .then((text) => { if (text === 'Form') { // FIXME: https://github.com/cypress-io/cypress/issues/7306 - cy.wait(5000); + cy.wait(1000); cy.get(domSelector.monacoMode).should('be.visible'); cy.get(domSelector.monacoMode).click(); cy.get(domSelector.selectDropdown).should('be.visible');