view fixes

This commit is contained in:
Martin McKeaveney 2021-06-02 19:20:28 +01:00
parent 32579aede8
commit 5b26d094cc
1 changed files with 23 additions and 17 deletions

View File

@ -39,14 +39,23 @@ context("Create a View", () => {
it("filters the view by age over 10", () => { it("filters the view by age over 10", () => {
cy.contains("Filter").click() cy.contains("Filter").click()
cy.contains("Add Filter").click() cy.contains("Add Filter").click()
cy.get(".menu-container")
.find("select") cy.get(".spectrum-Picker-label").eq(0).click()
.first() cy.contains("age").click()
.select("age")
cy.get(".menu-container") cy.get(".spectrum-Picker-label").eq(1).click()
.find("select") cy.contains("More Than").click()
.eq(1)
.select("More Than") 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") cy.get(".menu-container")
.find("input") .find("input")
.type(18) .type(18)
@ -61,15 +70,12 @@ context("Create a View", () => {
cy.viewport("macbook-15") cy.viewport("macbook-15")
cy.contains("Calculate").click() cy.contains("Calculate").click()
cy.get(".menu-container") cy.get(".spectrum-Picker-label").eq(0).click()
.find("select") cy.contains("Statistics").click()
.eq(0)
.select("Statistics") cy.get(".spectrum-Picker-label").eq(1).click()
cy.wait(50) cy.contains("age").click()
cy.get(".menu-container")
.find("select")
.eq(1)
.select("age")
cy.contains("Save").click() cy.contains("Save").click()
cy.wait(1000) cy.wait(1000)
cy.get(".ag-center-cols-viewport").scrollTo("100%") cy.get(".ag-center-cols-viewport").scrollTo("100%")