From 2c1eb5c10d60ecf6a2d9df082955fb69d6dbfee4 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 14 Apr 2020 13:34:35 +0300 Subject: [PATCH] Disable Percy snapshot for Choropleth test (#4799) * 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 * Update choropleth_spec.js Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io --- .../integration/visualizations/choropleth_spec.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/cypress/integration/visualizations/choropleth_spec.js b/client/cypress/integration/visualizations/choropleth_spec.js index c5faa43290..55ffc2b800 100644 --- a/client/cypress/integration/visualizations/choropleth_spec.js +++ b/client/cypress/integration/visualizations/choropleth_spec.js @@ -1,4 +1,4 @@ -/* global cy, Cypress */ +/* global cy */ import { createQuery } from "../../support/redash-api"; @@ -30,8 +30,6 @@ const SQL = ` `; describe("Choropleth", () => { - const viewportWidth = Cypress.config("viewportWidth"); - beforeEach(() => { cy.login(); createQuery({ query: SQL }).then(({ id }) => { @@ -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] }); }); });