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", () => {
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%")