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

#18547 Repro: Wrong id used in links for questions added to dashboard in the activity page (#18575)

parent e662260e
No related branches found
No related tags found
No related merge requests found
//Replaces HomepageApp.e2e.spec.js
import { restore, openProductsTable, popover } from "__support__/e2e/cypress";
import {
restore,
openProductsTable,
popover,
sidebar,
editDashboard,
saveDashboard,
} from "__support__/e2e/cypress";
describe("metabase > scenarios > home > activity-page", () => {
beforeEach(() => {
......@@ -47,4 +54,33 @@ describe("metabase > scenarios > home > activity-page", () => {
cy.findAllByText("Robert").should("have.length", 2);
cy.findByText("Products, Filtered by Rating");
});
it.skip("should respect the (added to dashboard) card id in the link (metabase#18547)", () => {
cy.intercept("GET", `/api/dashboard/1`).as("dashboard");
cy.visit("/dashboard/1");
cy.wait("@dashboard");
editDashboard();
cy.icon("add")
.last()
.click();
sidebar().within(() => {
cy.get(".LoadingSpinner").should("not.exist");
cy.findByText("Orders").click();
});
saveDashboard();
cy.wait("@dashboard");
cy.visit("/activity");
cy.contains("You added a question to the dashboard - Orders in a dashboard")
.closest("li")
.findByRole("link", { name: "Orders" })
.should("have.attr", "href")
.and("include", "question/1");
});
});
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