budibase/packages/builder/cypress/integration/createScreen.js

22 lines
536 B
JavaScript
Raw Normal View History

context("Screen Tests", () => {
before(() => {
2021-04-15 19:29:11 +02:00
cy.login()
cy.createTestApp()
cy.navigateToFrontend()
})
it("Should successfully create a screen", () => {
cy.createScreen("Test Screen", "/test")
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")
})
})
})