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

#16212 Repro: Questions used in SQL query aren't linked correctly from variables sidebar (#16228)

parent 6a632764
Branches
Tags
No related merge requests found
......@@ -723,4 +723,27 @@ describe("scenarios > question > native", () => {
});
});
});
it.skip("should link correctly from the variables sidebar (metabase#16212)", () => {
cy.createNativeQuestion({
name: "16212",
native: { query: 'select 1 as "a", 2 as "b"' },
}).then(({ body: { id: questionId } }) => {
cy.visit("/");
cy.icon("sql").click();
cy.get(".ace_content").type(`{{#${questionId}}}`, {
parseSpecialCharSequences: false,
});
cy.get(".NativeQueryEditor .Icon-play").click();
cy.get(".Visualization").within(() => {
cy.findByText("a");
cy.findByText("b");
cy.findByText("1");
cy.findByText("2");
});
cy.findByRole("link", { name: `Question #${questionId}` })
.should("have.attr", "href")
.and("eq", `/question/${questionId}`);
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment