2021-03-06 03:36:38 +13:00
|
|
|
context("Screen Tests", () => {
|
|
|
|
before(() => {
|
2021-04-16 05:29:11 +12:00
|
|
|
cy.login()
|
2021-03-06 03:36:38 +13:00
|
|
|
cy.createTestApp()
|
|
|
|
cy.navigateToFrontend()
|
|
|
|
})
|
|
|
|
|
|
|
|
it("Should successfully create a screen", () => {
|
|
|
|
cy.createScreen("Test Screen", "/test")
|
2021-07-28 19:09:37 +12:00
|
|
|
cy.get(".nav-items-container").within(() => {
|
|
|
|
cy.contains("/test").should("exist")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
it("Should update the url", () => {
|
|
|
|
cy.createScreen("Test Screen", "test with spaces")
|
|
|
|
cy.get(".nav-items-container").within(() => {
|
2021-08-07 07:46:44 +12:00
|
|
|
cy.contains("/test-with-spaces").should("exist")
|
2021-07-28 19:09:37 +12:00
|
|
|
})
|
2021-03-06 03:36:38 +13:00
|
|
|
})
|
|
|
|
})
|