Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko committed Jul 3, 2019
1 parent 339122f commit 71be50c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions client/cypress/integration/visualizations/box_plot_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ describe('Box Plot', () => {
'BoxPlot.YAxisLabel': 'Y Axis',
});

// Wait for proper initialization of visualization
cy.wait(500); // eslint-disable-line cypress/no-unnecessary-waiting

cy.getByTestId('VisualizationPreview').find('svg').should('exist');

cy.viewport(1280, 1024);
cy.wait(500); // eslint-disable-line cypress/no-unnecessary-waiting
cy.screenshot();
cy.percySnapshot('Visualizations - Box Plot', { widths: [1280] });
cy.percySnapshot('Visualizations - Box Plot');
});
});
4 changes: 3 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"videosFolder": "client/cypress/videos",
"supportFile": "client/cypress/support/index.js",
"defaultCommandTimeout": 20000,
"requestTimeout": 15000
"requestTimeout": 15000,
"viewportWidth": 1280,
"viewportHeight": 1024
}

0 comments on commit 71be50c

Please sign in to comment.