2020-06-24 17:16:06 +02:00
|
|
|
|
|
|
|
context('Screen Tests', () => {
|
|
|
|
before(() => {
|
2020-08-05 16:18:28 +02:00
|
|
|
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', () => {
|
2020-08-05 16:18:28 +02:00
|
|
|
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')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|