Browse Source

adds sorting to cypress views test

gh-pages
Keviin Åberg Kultalahti 6 years ago
parent
commit
d62c4bef95
  1. 4
      packages/builder/cypress/integration/createView.spec.js

4
packages/builder/cypress/integration/createView.spec.js

@ -109,7 +109,7 @@ context("Create a View", () => {
.find(".ag-cell") .find(".ag-cell")
.then($values => { .then($values => {
const values = Array.from($values).map(value => value.textContent) const values = Array.from($values).map(value => value.textContent)
expect(values).to.deep.eq([ expect(values.sort()).to.deep.eq([
"Students", "Students",
"23.333333333333332", "23.333333333333332",
"1650", "1650",
@ -117,7 +117,7 @@ context("Create a View", () => {
"25", "25",
"20", "20",
"70", "70",
]) ].sort())
}) })
}) })

Loading…
Cancel
Save