budibase/packages/builder/cypress/integration/screens.spec.js

23 lines
687 B
JavaScript
Raw Normal View History

2020-06-24 17:16:06 +02:00
context('Screen Tests', () => {
before(() => {
cy.server()
2020-06-24 17:16:06 +02:00
cy.visit('localhost:4001/_builder')
2020-10-13 12:19:34 +02:00
cy.createApp('Conor Cy App', 'Table App Description')
2020-06-24 17:16:06 +02:00
cy.navigateToFrontend()
})
it('Should successful create a screen', () => {
cy.createScreen("test Screen", "/test")
2020-06-24 17:16:06 +02:00
})
it('Should rename a screen', () => {
cy.get(".components-pane").within(() => {
cy.contains("Settings").click()
cy.get("input[name=_instanceName]").clear().type("About Us").blur()
})
cy.get('.nav-items-container').within(() => {
cy.contains("About Us").should('exist')
})
})
})