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(() => {
|
2021-08-06 21:46:44 +02:00
|
|
|
cy.contains("/test-with-spaces").should("exist")
|
2021-07-28 09:09:37 +02:00
|
|
|
})
|
2021-03-05 15:36:38 +01:00
|
|
|
})
|
|
|
|
})
|