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

#17619 Repro: "More options" menu not opening (#17622)

parent babbffbc
No related merge requests found
import { restore } from "__support__/e2e/cypress";
import { SAMPLE_DATASET } from "__support__/e2e/cypress_sample_dataset";
const { PRODUCTS, PRODUCTS_ID } = SAMPLE_DATASET;
const questionDetails = {
name: "17619",
query: {
"source-table": PRODUCTS_ID,
aggregation: [["count"]],
breakout: [
["field", PRODUCTS.CREATED_AT, { "temporal-unit": "month-of-year" }],
["field", PRODUCTS.CATEGORY, null],
],
},
display: "line",
};
describe.skip("issue 17619", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
});
it("should show and open 'More options' on visualizations with multiple lines (metabase#17619)", () => {
cy.createQuestion(questionDetails, { visitQuestion: true });
cy.findByTestId("viz-settings-button").click();
openMoreOptionsForCategory("Doohickey");
cy.findByText("Line style");
cy.findByText("Show dots on lines");
cy.findByText("Replace missing values with");
cy.findByText("Which axis?");
cy.findByText("Show values for this series");
cy.icon("chevronup");
});
});
function openMoreOptionsForCategory(category) {
cy.findByTestId("sidebar-left").within(() => {
cy.findByDisplayValue(category)
.siblings()
.find(".Icon-chevrondown")
.click();
});
}
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