From fa2a1693adf3f3091da357cc2bb1060f2dcad987 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 2 Jun 2021 19:20:28 +0100 Subject: [PATCH] view fixes --- .../cypress/integration/createView.spec.js | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/packages/builder/cypress/integration/createView.spec.js b/packages/builder/cypress/integration/createView.spec.js index 71c0b52c60..5959ca4c62 100644 --- a/packages/builder/cypress/integration/createView.spec.js +++ b/packages/builder/cypress/integration/createView.spec.js @@ -39,14 +39,23 @@ context("Create a View", () => { it("filters the view by age over 10", () => { cy.contains("Filter").click() cy.contains("Add Filter").click() - cy.get(".menu-container") - .find("select") - .first() - .select("age") - cy.get(".menu-container") - .find("select") - .eq(1) - .select("More Than") + + cy.get(".spectrum-Picker-label").eq(0).click() + cy.contains("age").click() + + cy.get(".spectrum-Picker-label").eq(1).click() + cy.contains("More Than").click() + + cy.get(".spectrum-Picker-label").eq(2).click() + cy.contains("More Than").click() + // cy.get(".menu-container") + // .find("select") + // .first() + // .select("age") + // cy.get(".menu-container") + // .find("select") + // .eq(1) + // .select("More Than") cy.get(".menu-container") .find("input") .type(18) @@ -61,15 +70,12 @@ context("Create a View", () => { cy.viewport("macbook-15") cy.contains("Calculate").click() - cy.get(".menu-container") - .find("select") - .eq(0) - .select("Statistics") - cy.wait(50) - cy.get(".menu-container") - .find("select") - .eq(1) - .select("age") + cy.get(".spectrum-Picker-label").eq(0).click() + cy.contains("Statistics").click() + + cy.get(".spectrum-Picker-label").eq(1).click() + cy.contains("age").click() + cy.contains("Save").click() cy.wait(1000) cy.get(".ag-center-cols-viewport").scrollTo("100%")