Skip to content
Snippets Groups Projects
Unverified Commit caf42840 authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

chore: more another flaky test to jail (#48677)

parent 46af3b4c
No related branches found
No related tags found
No related merge requests found
......@@ -65,39 +65,43 @@ describe("scenarios > public > question", () => {
updateSetting("enable-public-sharing", true);
});
it("adds filters to url as get params and renders the results correctly (metabase#7120, metabase#17033, metabase#21993)", () => {
cy.createNativeQuestion(questionData).then(({ body: { id } }) => {
visitQuestion(id);
it(
"adds filters to url as get params and renders the results correctly (metabase#7120, metabase#17033, metabase#21993)",
{ tags: "@flaky" },
() => {
cy.createNativeQuestion(questionData).then(({ body: { id } }) => {
visitQuestion(id);
// Make sure metadata fully loaded before we continue
cy.get("[data-testid=cell-data]").contains("Winner");
// Make sure metadata fully loaded before we continue
cy.get("[data-testid=cell-data]").contains("Winner");
openNewPublicLinkDropdown("card");
openNewPublicLinkDropdown("card");
// Although we already have API helper `visitPublicQuestion`,
// it makes sense to use the UI here in order to check that the
// generated url originally doesn't include query params
visitPublicURL();
// Although we already have API helper `visitPublicQuestion`,
// it makes sense to use the UI here in order to check that the
// generated url originally doesn't include query params
visitPublicURL();
// On page load, query params are added
cy.location("search").should("eq", EXPECTED_QUERY_PARAMS);
// On page load, query params are added
cy.location("search").should("eq", EXPECTED_QUERY_PARAMS);
filterWidget().contains("Previous 30 Years");
filterWidget().contains("Affiliate");
filterWidget().contains("Previous 30 Years");
filterWidget().contains("Affiliate");
cy.wait("@publicQuery");
// Name of a city from the expected results
cy.get("[data-testid=cell-data]").contains("Winner");
cy.wait("@publicQuery");
// Name of a city from the expected results
cy.get("[data-testid=cell-data]").contains("Winner");
// Make sure we can download the public question (metabase#21993)
cy.get("@uuid").then(publicUuid => {
downloadAndAssert(
{ fileType: "xlsx", questionId: id, publicUuid },
assertSheetRowsCount(5),
);
// Make sure we can download the public question (metabase#21993)
cy.get("@uuid").then(publicUuid => {
downloadAndAssert(
{ fileType: "xlsx", questionId: id, publicUuid },
assertSheetRowsCount(5),
);
});
});
});
});
},
);
it("should only allow non-admin users to see a public link if one has already been created", () => {
cy.createNativeQuestion(questionData).then(({ body: { id } }) => {
......
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