Cypress Tests - Use Get Timeouts

This commit is contained in:
Conor_Mack 2020-06-24 16:58:30 +01:00
parent df5a9ee87a
commit ff3e922e22
2 changed files with 3 additions and 5 deletions

View File

@ -105,11 +105,9 @@ Cypress.Commands.add("addButtonComponent", () => {
})
Cypress.Commands.add("navigateToFrontend", () => {
cy.wait(4000)
cy.get(".close").click()
cy.get(".close", { timeout: 10000 }).click()
cy.contains("frontend").click()
cy.wait(2000)
cy.get(".close").click()
cy.get(".close", { timeout: 10000 }).click()
})
Cypress.Commands.add("createScreen", (screenName, route) => {

View File

@ -1,4 +1,4 @@
import { find, isUndefined, filter, some, includes } from "lodash/fp"
import { isUndefined, filter, some, includes } from "lodash/fp"
import { pipe } from "components/common/core"
const normalString = s => (s || "").trim().toLowerCase()