Add slight delay to make views tests pass
This commit is contained in:
parent
ad97e5fb71
commit
d5b4dee531
|
@ -28,11 +28,7 @@ context("Create a View", () => {
|
||||||
const headers = Array.from($headers).map(header =>
|
const headers = Array.from($headers).map(header =>
|
||||||
header.textContent.trim()
|
header.textContent.trim()
|
||||||
)
|
)
|
||||||
expect(removeSpacing(headers)).to.deep.eq([
|
expect(removeSpacing(headers)).to.deep.eq(["group", "age", "rating"])
|
||||||
"group",
|
|
||||||
"age",
|
|
||||||
"rating",
|
|
||||||
])
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -57,11 +53,12 @@ context("Create a View", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it("creates a stats calculation view based on age", () => {
|
it("creates a stats calculation view based on age", () => {
|
||||||
|
cy.wait(1000)
|
||||||
cy.contains("Calculate").click()
|
cy.contains("Calculate").click()
|
||||||
cy.get(".modal-inner-wrapper").within(() => {
|
cy.get(".modal-inner-wrapper").within(() => {
|
||||||
cy.get(".spectrum-Picker-label").eq(0).click()
|
cy.get(".spectrum-Picker-label").eq(0).click()
|
||||||
cy.contains("Statistics").click()
|
cy.contains("Statistics").click()
|
||||||
|
|
||||||
cy.get(".spectrum-Picker-label").eq(1).click()
|
cy.get(".spectrum-Picker-label").eq(1).click()
|
||||||
cy.contains("age").click({ force: true })
|
cy.contains("age").click({ force: true })
|
||||||
|
|
||||||
|
@ -104,20 +101,20 @@ context("Create a View", () => {
|
||||||
cy.get(".spectrum-Table-cell").then($values => {
|
cy.get(".spectrum-Table-cell").then($values => {
|
||||||
let values = Array.from($values).map(header => header.textContent.trim())
|
let values = Array.from($values).map(header => header.textContent.trim())
|
||||||
expect(values).to.deep.eq([
|
expect(values).to.deep.eq([
|
||||||
"Students",
|
"Students",
|
||||||
"70",
|
"70",
|
||||||
"20",
|
"20",
|
||||||
"25",
|
"25",
|
||||||
"3",
|
"3",
|
||||||
"1650",
|
"1650",
|
||||||
"23.333333333333332",
|
"23.333333333333332",
|
||||||
"Teachers",
|
"Teachers",
|
||||||
"85",
|
"85",
|
||||||
"36",
|
"36",
|
||||||
"49",
|
"49",
|
||||||
"2",
|
"2",
|
||||||
"3697",
|
"3697",
|
||||||
"42.5",
|
"42.5",
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue