From 9ef0972bd500cabbc58ffb0a0c6f2d4b038dd08f Mon Sep 17 00:00:00 2001 From: gillespi314 <73313222+gillespi314@users.noreply.github.com> Date: Tue, 30 Aug 2022 11:22:21 -0500 Subject: [PATCH] Adjust flaky Cypress test (#7451) --- cypress/integration/all/app/policiesflow.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/integration/all/app/policiesflow.spec.ts b/cypress/integration/all/app/policiesflow.spec.ts index 559f1b0b23..71f320e426 100644 --- a/cypress/integration/all/app/policiesflow.spec.ts +++ b/cypress/integration/all/app/policiesflow.spec.ts @@ -268,15 +268,18 @@ describe("Policies flow (empty)", () => { { parseSpecialCharSequences: false } ); // eslint-disable-next-line cypress/no-unnecessary-waiting - cy.wait(700); // wait for text input debounce + cy.wait(1000); // wait for text input debounce cy.getAttached(".platform").each((el, i) => { testCompatibility(el, i, [true, false, true]); }); // Query with only macOS tables treated as compatible only with macOS + // eslint-disable-next-line cypress/no-unnecessary-waiting cy.getAttached(".ace_scroller") .first() .click({ force: true }) + .type("{selectall} ") + .wait(300) // wait for ace to clear text before proceeding .type( "{selectall}SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;" );