From ab8ca00010bed32b3ea66e6b6e039b298f69d891 Mon Sep 17 00:00:00 2001 From: Levko Kravets Date: Thu, 12 Sep 2019 20:46:54 +0300 Subject: [PATCH] Fix tests --- client/app/visualizations/table/renderer.less | 4 ++++ client/cypress/integration/dashboard/widget_spec.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/app/visualizations/table/renderer.less b/client/app/visualizations/table/renderer.less index ed82115ee7..2ee4e5a318 100644 --- a/client/app/visualizations/table/renderer.less +++ b/client/app/visualizations/table/renderer.less @@ -103,6 +103,10 @@ /* START table x scroll */ .dashboard-widget-wrapper:not(.widget-auto-height-enabled) & { + position: absolute; + left: 0; + top: 0; + width: 100%; height: 100%; & div { diff --git a/client/cypress/integration/dashboard/widget_spec.js b/client/cypress/integration/dashboard/widget_spec.js index 7a42bbd1e6..24a8cb4bdd 100644 --- a/client/cypress/integration/dashboard/widget_spec.js +++ b/client/cypress/integration/dashboard/widget_spec.js @@ -151,7 +151,7 @@ describe('Widget', () => { cy.visit(this.dashboardUrl); cy.getByTestId('TableVisualization') .its('0.offsetHeight') - .should('eq', 381); + .should('eq', 380); cy.percySnapshot('Shows correct height of table visualization'); }); });