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

26 lines
725 B
JavaScript
Raw Normal View History

2020-06-09 23:52:19 +12:00
context('Create Application', () => {
beforeEach(() => {
cy.visit('localhost:4001/_builder')
})
// https://on.cypress.io/interacting-with-elements
it('should create a new application', () => {
// https://on.cypress.io/type
cy.get('.banner-button')
.click()
.get('input[name="name"]')
.type('My Cool Application').should('have.value', 'My Cool Application')
cy.get('textarea[name="description"]')
.type('This is a description').should('have.value', 'This is a description')
cy.contains('Save').click()
cy.visit('localhost:4001/_builder')
2020-06-10 01:40:00 +12:00
cy.contains('My Cool Application').should('exist')
2020-06-09 23:52:19 +12:00
})
})