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

42 lines
993 B
JavaScript
Raw Normal View History

2020-08-10 16:34:37 +02:00
context('Create a Table', () => {
2020-08-07 19:31:40 +02:00
before(() => {
cy.visit('localhost:4001/_builder')
cy.createApp('Table App', 'Table App Description')
})
// https://on.cypress.io/interacting-with-elements
it('should create a new Table', () => {
2020-08-10 16:34:37 +02:00
cy.createTable('dog')
2020-08-07 19:31:40 +02:00
// Check if Table exists
cy.get('.title').should('have.text', 'dog')
})
2020-08-10 16:34:37 +02:00
// it('adds a new column to the table', () => {
// cy.addRecord('bob', '15')
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// it('updates a column on the table', () => {
// cy.addRecord('bob', '15')
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// it('edits a record', () => {
// cy.addRecord('bob', '15')
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// it('deletes a record', () => {
// cy.addRecord('bob', '15')
2020-08-07 19:31:40 +02:00
2020-08-10 16:34:37 +02:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-07 19:31:40 +02:00
})