Skip to content

Commit

Permalink
test: add 1 sec delay before opening dropdown (#14860)
Browse files Browse the repository at this point in the history
  • Loading branch information
dizel852 committed Dec 19, 2024
1 parent 376cfcf commit 7f580c8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export class StreamRowPageObject {
const syncMode = `${SYNC_MODE_STRINGS[source]} | ${SYNC_MODE_STRINGS[dest]}`;

this.withinStream(() => {
// Need 1 second delay to fix flaky test where sync mode dropdown closes before the option is selected
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(1000);
cy.get(streamSyncModeSelectButton).click();
cy.get(streamSyncModeOptionsMenu).should("exist");

Expand Down Expand Up @@ -132,6 +135,9 @@ export class StreamRowPageObject {
selectPKs(pks: string[]) {
this.withinStream(() => {
cy.get(streamPKCell).within(() => {
// Need 1 second delay to fix flaky test where PK dropdown closes before the option is selected
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(1000);
cy.get("button").click();
cy.get('div[role="listbox"]').should("exist");
pks.forEach((pk) => {
Expand Down Expand Up @@ -180,6 +186,9 @@ export class StreamRowPageObject {
selectCursor(cursor: string) {
this.withinStream(() => {
cy.get(streamCursorCell).within(() => {
// Need 1 second delay to fix flaky test where cursor dropdown closes before the option is selected
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(1000);
cy.get("button").click();
cy.get('div[role="listbox"]').should("exist");
cy.contains(cursor).click();
Expand Down

0 comments on commit 7f580c8

Please sign in to comment.