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

#18352 Repro: Pulse table cards with INT64 values fail to render in 0.41.0 (#18356)

parent ca14538b
No related branches found
No related tags found
No related merge requests found
import { restore, setupSMTP } from "__support__/e2e/cypress";
import { USERS } from "__support__/e2e/cypress_data";
const {
admin: { first_name, last_name },
} = USERS;
const questionDetails = {
name: "18352",
native: {
query: "SELECT 'foo', 1 UNION ALL SELECT 'bar', 2",
},
};
describe.skip("issue 18352", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
setupSMTP();
cy.createNativeQuestionAndDashboard({ questionDetails }).then(
({ body: { card_id, dashboard_id } }) => {
cy.intercept("POST", `/api/card/${card_id}/query`).as("cardQuery");
cy.visit(`/question/${card_id}`);
cy.wait("@cardQuery");
cy.visit(`/dashboard/${dashboard_id}`);
},
);
});
it("should send the card with the INT64 values (metabase#18352)", () => {
cy.icon("share").click();
cy.findByText("Dashboard subscriptions").click();
cy.findByText("Email it").click();
cy.findByPlaceholderText("Enter user names or email addresses").click();
cy.findByText(`${first_name} ${last_name}`).click();
// Click this just to close the popover that is blocking the "Send email now" button
cy.findByText(`To:`).click();
cy.button("Send email now").click();
cy.findByText("Email sent");
cy.request("GET", "http://localhost:80/email").then(
({ body: [{ html }] }) => {
expect(html).not.to.include(
"An error occurred while displaying this card.",
);
expect(html).to.include("foo");
expect(html).to.include("bar");
},
);
});
});
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