From 2116ff979d5769568da0f2dcc04571b2798399b5 Mon Sep 17 00:00:00 2001 From: Sirazh Gabdullin Date: Thu, 29 Jun 2023 21:34:28 +0600 Subject: [PATCH] update testSplitTables test Signed-off-by: Sirazh Gabdullin --- .../apps/vis_builder/vis_types/table.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js index 69900379b..d04accb72 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js @@ -50,14 +50,14 @@ if (Cypress.env('VISBUILDER_ENABLED')) { cy.getElementByTestId('field-categories.keyword-showDetails').drag( '[data-test-subj="dropBoxAddField-split_row"]' ); - testSplitTables('', 4); + testSplitTables(4); removeBucket('dropBoxField-split_row-0'); // vis builder should render splitted tables in columns cy.getElementByTestId('field-categories.keyword-showDetails').drag( '[data-test-subj="dropBoxAddField-split_column"]' ); - testSplitTables('visTable__groupInColumns', 4); + testSplitTables(4); }); after(() => { @@ -85,9 +85,9 @@ export const removeBucket = (bucket) => { }); }; -export const testSplitTables = (dir, num) => { +export const testSplitTables = (num) => { cy.getElementByTestId('visTable') - .should('have.class', `visTable ${dir}`.trim()) + .should('have.class', `visTable`) .find('[class="visTable__group"]') .should(($tables) => { // should have found specified number of tables