update cypress to account for no default screen

This commit is contained in:
Peter Clement 2021-11-25 21:48:07 +00:00
parent d42df03f25
commit 2945b15ee3
1 changed files with 3 additions and 1 deletions

View File

@ -182,7 +182,9 @@ Cypress.Commands.add("navigateToFrontend", () => {
cy.wait(1000) cy.wait(1000)
cy.contains("Design").click() cy.contains("Design").click()
cy.get(".spectrum-Search").type("/") cy.get(".spectrum-Search").type("/")
cy.get(".nav-item").contains("Home").click() cy.createScreen("home", "home")
cy.addComponent("Elements", "Headline")
cy.get(".nav-item").contains("home").click()
}) })
Cypress.Commands.add("createScreen", (screenName, route) => { Cypress.Commands.add("createScreen", (screenName, route) => {