Skip to content

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

Fix object detail flake #39477 (#67442)

Nemanja Glumac73a25b84ef47
diff --git a/e2e/test/scenarios/visualizations-tabular/object_detail.cy.spec.js b/e2e/test/scenarios/visualizations-tabular/object_detail.cy.spec.js
index 46e0262b820..c5d321cba6f 100644
--- a/e2e/test/scenarios/visualizations-tabular/object_detail.cy.spec.js
+++ b/e2e/test/scenarios/visualizations-tabular/object_detail.cy.spec.js
@@ -95,11 +95,18 @@ describe("scenarios > question > object details", { tags: "@slow" }, () => {
};
H.createQuestion(questionDetails, { visitQuestion: true });
+
+ cy.log("Wait for the table to fully render");
cy.findByTestId("question-row-count").should("have.text", "Showing 2 rows");
+ cy.findByTestId("table-header")
+ .should("be.visible")
+ .and("contain", "Subtotal");
+ cy.findByTestId("table-body")
+ .should("be.visible")
+ .and("contain", "37.65")
+ .and("contain", "110.93");
cy.log("Check object details for the first row");
- cy.findAllByTestId("cell-data").filter(":contains(37.65)").realHover();
- cy.findAllByTestId("detail-shortcut").eq(1).should("be.hidden");
H.openObjectDetail(0);
cy.findByTestId("object-detail").within(() => {
cy.findByRole("heading", { name: "Awesome Concrete Shoes" }).should(
@@ -111,8 +118,6 @@ describe("scenarios > question > object details", { tags: "@slow" }, () => {
});
cy.log("Check object details for the second row");
- cy.findAllByTestId("cell-data").filter(":contains(110.93)").realHover();
- cy.findAllByTestId("detail-shortcut").eq(0).should("be.hidden");
H.openObjectDetail(1);
cy.findByTestId("object-detail").within(() => {
cy.findByRole("heading", { name: "Mediocre Wooden Bench" }).should(