1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00
budibase/packages/builder/cypress/integration/createScreen.js

26 lines
665 B
JavaScript
Raw Normal View History

import filterTests from "../support/filterTests"
2022-01-22 02:12:16 +13:00
filterTests(["smoke", "all"], () => {
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")
})
})
2022-01-22 02:12:16 +13:00
})
})