Skip to content
Snippets Groups Projects
Unverified Commit 6bd2560c authored by github-automation-metabase's avatar github-automation-metabase Committed by GitHub
Browse files

Fix flaky homepage xrays test (#49765) (#49862)


* Fix flaky test

* Add a comment

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>
parent 9c650716
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,12 @@ describe("scenarios > home > homepage", () => {
cy.visit("/");
cy.wait("@getXrayCandidates");
// The repeated assertion below uses { timeout: 0 } and sometimes it happens too fast,
// even before React finishes re-rendering after @getXrayCandidates completes.
// This assertion prevents it.
cy.findByTestId("home-page")
.findByTestId("loading-indicator")
.should("not.exist");
repeatAssertion(() =>
cy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment