1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00
budibase/packages/builder/cypress/integration/createScreen.js
Mitch-Budibase 0abcff774b Adding tags to tests
Currently there is 'smoke' and 'all' tags
2022-01-21 12:43:27 +00:00

26 lines
667 B
JavaScript

import filterTests from "../support/filterTests"
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")
})
})
})
})