Skip to content
Snippets Groups Projects
Unverified Commit b7cf663b authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Add visual tests for table visualisation (#18826)

* Add visual tests for table visualisation

* Wait until spinner disappears
parent cba9a8a0
Branches
Tags
No related merge requests found
import { restore, openOrdersTable, modal } from "__support__/e2e/cypress";
describe("visual tests > visualizations > table", () => {
beforeEach(() => {
cy.intercept("POST", "/api/dataset").as("dataset");
restore();
cy.signInAsNormalUser();
openOrdersTable();
cy.wait("@dataset");
cy.findByTestId("loading-spinner").should("not.exist");
});
it("ad-hoc", () => {
cy.percySnapshot();
});
it("saved", () => {
saveQuestion();
cy.percySnapshot();
});
});
function saveQuestion() {
cy.findByText("Save").click();
modal().within(() => {
cy.button("Save").click();
});
modal()
.findByText("Not now")
.click();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment