From d771d79adbd626a71892f2319e5a07919df247d5 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Tue, 17 Sep 2024 17:52:13 +0530 Subject: [PATCH] update the spec --- .../Widgets/Others/MapChart_Spec.ts | 25 +++++++++---------- .../cypress/locators/publishWidgetspage.json | 5 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/Widgets/Others/MapChart_Spec.ts b/app/client/cypress/e2e/Regression/ClientSide/Widgets/Others/MapChart_Spec.ts index 482adcdb197..a2284fafe56 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Widgets/Others/MapChart_Spec.ts +++ b/app/client/cypress/e2e/Regression/ClientSide/Widgets/Others/MapChart_Spec.ts @@ -140,12 +140,12 @@ describe( ); agHelper.GetNClick(locators._enterPreviewMode); - agHelper - .GetElement(publishWidgetspage.mapChartWidget) - .find("svg") - .find("text") - .should("contain.text", "IN: 2") - .click(); + agHelper.GetElement(publishWidgetspage.mapChartWidget) + .find("svg") + .find("text") + .contains("IN: 2") + .click(); + agHelper.ValidateToastMessage("Data Point India Clicked"); agHelper.GetNClick(locators._exitPreviewMode); EditorNavigation.SelectEntityByName("MapChart1", EntityType.Widget); @@ -156,12 +156,11 @@ describe( "{{showAlert('Converted to Js and clicked '+ MapChart1.selectedDataPoint.label)}}", ); agHelper.GetNClick(locators._enterPreviewMode); - agHelper - .GetElement(publishWidgetspage.mapChartWidget) - .find("svg") - .find("text") - .should("contain.text", "IN: 2") - .click(); + agHelper.GetElement(publishWidgetspage.mapChartWidget) + .find("svg") + .find("text") + .contains("IN: 2") + .click(); agHelper.ValidateToastMessage("Converted to Js and clicked India"); agHelper.GetNClick(locators._exitPreviewMode); EditorNavigation.SelectEntityByName("MapChart1", EntityType.Widget); @@ -181,7 +180,7 @@ describe( cy.get(publishWidgetspage.mapChartWidget) .find("svg") .find("path") - .should("have.attr", "fill", "rgb(0,0,0)"); + .should("have.attr", "fill", "#aeaeae"); // Change border radius and verify propPane.MoveToTab("Style"); diff --git a/app/client/cypress/locators/publishWidgetspage.json b/app/client/cypress/locators/publishWidgetspage.json index 43f8c1d17f2..72eb0686f25 100644 --- a/app/client/cypress/locators/publishWidgetspage.json +++ b/app/client/cypress/locators/publishWidgetspage.json @@ -6,7 +6,7 @@ "datepickerWidget": ".t--widget-datepickerwidget", "backToEditor": ".t--back-to-editor", "inputWidget": ".t--widget-inputwidgetv2", - "iconWidget":".t--widget-iconwidget", + "iconWidget": ".t--widget-iconwidget", "checkboxWidget": ".t--widget-checkboxwidget", "switchwidget": ".t--widget-switchwidget", "radioWidget": ".t--widget-radiogroupwidget", @@ -24,6 +24,7 @@ "tableWidget": ".t--widget-tablewidget", "chartCanvasVal": ".t--widget-chartwidget svg rect", "mapWidget": ".t--widget-mapwidget", + "mapChartWidget": ".t--widget-mapchartwidget", "tableLength": ".t--widget-tablewidget .tbody", "tableV2Length": ".t--widget-tablewidgetv2 .tbody", "mapSearch": ".t--widget-mapwidget input", @@ -41,7 +42,7 @@ "tableFilterInputValue": ".t--table-filter-value-input input", "canvas": ".canvas", "removeFilter": ".t--table-filter-remove-btn", - "rowHeight": ".t--property-control-rowheight .bp3-popover-target", + "rowHeight": ".t--property-control-rowheight .bp3-popover-target", "rowHeightOpt": ".t--table-compact-mode-option", "visibilityMode": ".t--table-column-visibility-toggle-btn", "visibilityOpt": ".option-title",