1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

Cypress Tests - Use Get Timeouts

This commit is contained in:
Conor_Mack 2020-06-24 16:58:30 +01:00
parent 4c7bdcded1
commit b9d7cfdec1
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()