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

Repro #20044: "Explore results" shown for no-data users (#20197)

parent a1c55555
Branches
Tags
No related merge requests found
import { restore } from "__support__/e2e/cypress";
const questionDetails = {
name: "20044",
native: {
query: "select 1",
},
};
describe("issue 20044", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
});
it("nodata user should not see 'Explore results' (metabase#20044)", () => {
cy.createNativeQuestion(questionDetails).then(({ body: { id } }) => {
cy.intercept("POST", `/api/card/${id}/query`).as("cardQuery");
cy.signIn("nodata");
cy.visit(`/question/${id}`);
cy.wait("@cardQuery");
cy.get(".cellData").contains("1");
cy.findByText("Explore results").should("not.exist");
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment