1
0
Fork 0
mirror of synced 2024-07-05 14:31:17 +12:00
budibase/packages/builder/cypress/integration/createApp.spec.js

19 lines
485 B
JavaScript
Raw Normal View History

2020-06-11 23:20:13 +12:00
context('Create an Application', () => {
2020-06-09 23:52:19 +12:00
beforeEach(() => {
cy.server()
cy.visit(`localhost:${Cypress.env("PORT")}/_builder`)
2020-06-09 23:52:19 +12:00
})
// https://on.cypress.io/interacting-with-elements
it('should create a new application', () => {
// https://on.cypress.io/type
cy.createApp('My Cool App', 'This is a description')
2020-06-09 23:52:19 +12:00
cy.visit(`localhost:${Cypress.env("PORT")}/_builder`)
2020-06-09 23:52:19 +12:00
cy.contains('My Cool App').should('exist')
2020-06-09 23:52:19 +12:00
})
})