1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00
budibase/packages/builder/cypress/integration/createScreen.js
2021-07-28 09:09:37 +02:00

21 lines
536 B
JavaScript

context("Screen Tests", () => {
before(() => {
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(() => {
cy.contains("/test_with_spaces").should("exist")
})
})
})