Skip to content

Commit

Permalink
test: working around the failure of a test case in CI env
Browse files Browse the repository at this point in the history
Trying a little wait between finding the menu in the dom and scrolling, just in case the scroll handlers inside menu overlay are set up with a tiny delay. Doesn't seem that plausible though.
  • Loading branch information
alirezamirian committed Dec 12, 2024
1 parent c2f1fce commit c30fdd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/jui/src/Menu/Menu.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,12 @@ describe("ContextMenu", () => {
scrollBehavior: false,
});
cy.findByRole("menu");

// onScroll was called in a run of the pipeline on the CI env.
// Not sure why but trying to work around the flakiness by a wait.
// https://cloud.cypress.io/projects/o1ooqz/runs/255/overview/0aa04a42-1030-4ab6-a8b2-1fe08069a705?roarHideRunsWithDiffGroupsAndTags=1
cy.wait(100);

cy.get("#container").realMouseWheel({
deltaY: 5,
scrollBehavior: false, // we don't want cypress to do any extra scrolling
Expand Down

0 comments on commit c30fdd5

Please sign in to comment.