Skip to content

Commit 8380299

Browse files
fix: chart widget fix (#6867)
Custom fusion chart was loading with some delay and cypress test cases were getting previous element to verify the x axis data. Added one more check to wait till the chart data is loaded before verifying.
1 parent aca5bd7 commit 8380299

File tree

1 file changed

+3
-0
lines changed
  • app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/DisplayWidgets

1 file changed

+3
-0
lines changed

app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/DisplayWidgets/Chart_spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ describe("Chart Widget Functionality", function() {
353353
"response.body.responseMeta.status",
354354
200,
355355
);
356+
cy.get(viewWidgetsPage.Chartlabel + ":first-child", {
357+
timeout: 10000,
358+
}).should("have.css", "opacity", "1");
356359
//Verifying X-axis labels
357360
cy.get(viewWidgetsPage.chartWidget).should("have.css", "opacity", "1");
358361
const labels = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"];

0 commit comments

Comments
 (0)