From e1bc8fccde945167d8fbc815a1c99feaabb1e46d Mon Sep 17 00:00:00 2001 From: Sirazh Gabdullin Date: Sat, 22 Jul 2023 17:02:03 +0600 Subject: [PATCH 1/2] fix-test Signed-off-by: Sirazh Gabdullin --- .../apps/vis_builder/vis_types/table.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 786ddb5b0..ff482cdbe 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 @@ -88,7 +88,7 @@ export const removeBucket = (bucket) => { export const testSplitTables = (num) => { cy.getElementByTestId('visTable') .should('have.class', 'visTable') - .find('[class="visTable__group"]') + .find('[class*="visTable__group"]') .should(($tables) => { // should have found specified number of tables expect($tables).to.have.length(num); From df82217cba64c4bbd35b77238be69043a102738c Mon Sep 17 00:00:00 2001 From: Sirazh Gabdullin Date: Mon, 24 Jul 2023 17:25:50 +0600 Subject: [PATCH 2/2] simplify selector Signed-off-by: Sirazh Gabdullin --- .../apps/vis_builder/vis_types/table.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ff482cdbe..4abc9d100 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 @@ -88,7 +88,7 @@ export const removeBucket = (bucket) => { export const testSplitTables = (num) => { cy.getElementByTestId('visTable') .should('have.class', 'visTable') - .find('[class*="visTable__group"]') + .find('.visTable__group') .should(($tables) => { // should have found specified number of tables expect($tables).to.have.length(num);