Adjust flaky Cypress test (#7451)

This commit is contained in:
gillespi314 2022-08-30 11:22:21 -05:00 committed by GitHub
parent 87717df1da
commit 9ef0972bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;"
);