2021-03-05 15:36:38 +01:00
|
|
|
context("Screen Tests", () => {
|
|
|
|
before(() => {
|
2021-04-15 19:29:11 +02:00
|
|
|
cy.login()
|
2021-03-05 15:36:38 +01:00
|
|
|
cy.createTestApp()
|
|
|
|
cy.navigateToFrontend()
|
|
|
|
})
|
|
|
|
|
|
|
|
it("Should successfully create a screen", () => {
|
|
|
|
cy.createScreen("Test Screen", "/test")
|
2021-07-28 09:09:37 +02: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(() => {
|
|
|
|
cy.contains("/test_with_spaces").should("exist")
|
|
|
|
})
|
2021-03-05 15:36:38 +01:00
|
|
|
})
|
|
|
|
})
|