Skip to content
Snippets Groups Projects
Unverified Commit 0a1b0db0 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Visual test: consistent baseline with no randomization (#17380)

parent bde391e9
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,13 @@ describe("visual tests > onboarding > URLs", () => {
it("home", () => {
cy.intercept("GET", `/api/automagic-dashboards`).as("automagic-dashboards");
cy.visit("/");
cy.visit("/", {
// to give predictable messages based on randomization
onBeforeLoad(win) {
cy.stub(win.Math, "random").returns(0.42);
},
});
cy.wait("@automagic-dashboards");
......
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