Skip to content

Commit

Permalink
Disable Percy snapshot for Choropleth test (#4799)
Browse files Browse the repository at this point in the history
* Disable Percy snapshot for Choropleth test

* Increase wait.

* Diasble Percy snapshot.

* Reduce wait time to original value.

* Restyled by prettier (#4800)

Co-authored-by: Restyled.io <commits@restyled.io>

* Update choropleth_spec.js

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
3 people authored Apr 14, 2020
1 parent 02cf895 commit 2c1eb5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/cypress/integration/visualizations/choropleth_spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global cy, Cypress */
/* global cy */

import { createQuery } from "../../support/redash-api";

Expand Down Expand Up @@ -30,8 +30,6 @@ const SQL = `
`;

describe("Choropleth", () => {
const viewportWidth = Cypress.config("viewportWidth");

beforeEach(() => {
cy.login();
createQuery({ query: SQL }).then(({ id }) => {
Expand Down Expand Up @@ -85,6 +83,9 @@ describe("Choropleth", () => {
cy.getByTestId("VisualizationPreview")
.find(".map-visualization-container.leaflet-container")
.should("exist");
cy.percySnapshot("Visualizations - Choropleth", { widths: [viewportWidth] });

// This is unstable and therefore disabled until a better solution is available.
// const viewportWidth = Cypress.config("viewportWidth");
// cy.percySnapshot("Visualizations - Choropleth", { widths: [viewportWidth] });
});
});

0 comments on commit 2c1eb5c

Please sign in to comment.