1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

Fix cypress tests

This commit is contained in:
Andrew Kingston 2020-10-17 19:07:12 +01:00
parent bf27d752bc
commit a68b7aaaed

View file

@ -155,9 +155,13 @@ Cypress.Commands.add("navigateToFrontend", () => {
Cypress.Commands.add("createScreen", (screenName, route) => {
cy.contains("Create New Screen").click()
cy.get(".modal").within(() => {
cy.get("input:first").type(screenName)
cy.get("input")
.eq(0)
.type(screenName)
if (route) {
cy.get("input:last").type(route)
cy.get("input")
.eq(1)
.type(route)
}
cy.contains("Create Screen").click()
})