Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Sort a copy of the shared question list in dashcard resizing e2e (#84408)

Nemanja Glumacb130aa914690
diff --git a/e2e/test/scenarios/dashboard/dashcard-resizing.cy.spec.js b/e2e/test/scenarios/dashboard/dashcard-resizing.cy.spec.js
index 2f5e885b7dc..54cadb73d14 100644
--- a/e2e/test/scenarios/dashboard/dashcard-resizing.cy.spec.js
+++ b/e2e/test/scenarios/dashboard/dashcard-resizing.cy.spec.js
@@ -214,7 +214,7 @@ describe(
* It will go in order from top to the bottom, which scrolls the
* sidebar naturally. This prevents acting on an element that's not visible.
*/
- const sortedCards = TEST_QUESTIONS.sort((a, b) =>
+ const sortedCards = TEST_QUESTIONS.toSorted((a, b) =>
a.name.localeCompare(b.name),
);