1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00
budibase/packages/builder/cypress/integration/createScreen.js

22 lines
536 B
JavaScript
Raw Normal View History

context("Screen Tests", () => {
before(() => {
2021-04-16 05:29:11 +12: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-07 07:46:44 +12:00
cy.contains("/test-with-spaces").should("exist")
})
})
})