Skip to content

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

Fix metrics-collection e2e flake (#64204)

Nemanja Glumac46adff882f38
diff --git a/e2e/test/scenarios/metrics/metrics-collection.cy.spec.js b/e2e/test/scenarios/metrics/metrics-collection.cy.spec.js
index de599abf6be..2fde81a1425 100644
--- a/e2e/test/scenarios/metrics/metrics-collection.cy.spec.js
+++ b/e2e/test/scenarios/metrics/metrics-collection.cy.spec.js
@@ -225,14 +225,14 @@ describe("scenarios > metrics > collection", () => {
H.createQuestion({
...ORDERS_SCALAR_MODEL_METRIC,
collection_id: FIRST_COLLECTION_ID,
- }).then(({ body: card }) => {
+ }).then(() => {
cy.signIn("nocollection");
H.visitCollection(FIRST_COLLECTION_ID);
});
H.getPinnedSection()
- .findByTestId("scalar-container")
- .findByText("18,760")
- .should("be.visible");
+ .findByTestId("scalar-value")
+ .should("not.be.empty")
+ .and("be.visible");
});
});