Skip to content
Snippets Groups Projects
Unverified Commit 7d1e8388 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Fix flaking repro for 11439 (#19692)

* Fix flaking repro for 11439

* Fix linter
parent 9f681a38
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,9 @@ export function openNotebookEditor({ fromCurrentPage } = {}) {
}
cy.findByText("New").click();
cy.findByText("Question").click();
cy.findByText("Question")
.should("be.visible")
.click();
}
/**
......
import {
browse,
enterCustomColumnDetails,
getBinningButtonForDimension,
openOrdersTable,
openReviewsTable,
popover,
......@@ -373,7 +372,10 @@ describe("scenarios > question > new", () => {
cy.findByText("Saved Questions").click();
cy.findByText("11439").click();
visualize();
cy.findByTestId("toggle-summarize-sidebar-button").click();
cy.findAllByTestId("toggle-summarize-sidebar-button")
.contains("Summarize")
.click();
cy.findByText("Group by")
.parent()
.within(() => {
......@@ -381,13 +383,15 @@ describe("scenarios > question > new", () => {
cy.log(
"**Marked as regression of [#10441](https://github.com/metabase/metabase/issues/10441)**",
);
getBinningButtonForDimension({
name: "Created At",
})
.should("have.text", "by month")
.click();
cy.findByText("Created At")
.closest("li")
.contains("by month")
// realHover() or mousemove don't work for whatever reason
// have to use this ugly hack for now
.click({ force: true });
});
// this step is maybe redundant since it fails to even find "by month"
// // this step is maybe redundant since it fails to even find "by month"
cy.findByText("Hour of Day");
});
......
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