Fix more cypress tests
This commit is contained in:
parent
380c44fdd2
commit
ae0a5d2c51
|
@ -148,12 +148,12 @@ Cypress.Commands.add("navigateToFrontend", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
Cypress.Commands.add("createScreen", (screenName, route) => {
|
Cypress.Commands.add("createScreen", (screenName, route) => {
|
||||||
cy.get(".newscreen").click()
|
cy.contains("Create New Screen").click()
|
||||||
cy.get("[data-cy=new-screen-dialog] input:first").type(screenName)
|
cy.get(".modal").within(() => {
|
||||||
|
cy.get("input:first").type(screenName)
|
||||||
if (route) {
|
if (route) {
|
||||||
cy.get("[data-cy=new-screen-dialog] input:last").type(route)
|
cy.get("input:last").type(route)
|
||||||
}
|
}
|
||||||
cy.get("[data-cy=create-screen-footer]").within(() => {
|
|
||||||
cy.contains("Create Screen").click()
|
cy.contains("Create Screen").click()
|
||||||
})
|
})
|
||||||
cy.get(".nav-items-container").within(() => {
|
cy.get(".nav-items-container").within(() => {
|
||||||
|
|
Loading…
Reference in New Issue