From b9e8319670608d8c154d97afa57bb308dcca6fd4 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 9 Jun 2020 13:52:19 +0200 Subject: [PATCH] adds test for creating budibase app --- .../cypress/integration/createApp.spec.js | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/builder/cypress/integration/createApp.spec.js diff --git a/packages/builder/cypress/integration/createApp.spec.js b/packages/builder/cypress/integration/createApp.spec.js new file mode 100644 index 0000000000..d8f9331eec --- /dev/null +++ b/packages/builder/cypress/integration/createApp.spec.js @@ -0,0 +1,25 @@ +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') + + cy.contains('My Cool Application') + }) +})