1
0
Fork 0
mirror of synced 2024-07-12 01:36:09 +12:00
budibase/packages/builder/cypress/integration/createTable.spec.js

42 lines
993 B
JavaScript
Raw Normal View History

2020-08-11 02:34:37 +12:00
context('Create a Table', () => {
2020-08-08 05:31:40 +12: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-11 02:34:37 +12:00
cy.createTable('dog')
2020-08-08 05:31:40 +12:00
// Check if Table exists
cy.get('.title').should('have.text', 'dog')
})
2020-08-11 02:34:37 +12:00
// it('adds a new column to the table', () => {
// cy.addRecord('bob', '15')
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// it('updates a column on the table', () => {
// cy.addRecord('bob', '15')
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// it('edits a record', () => {
// cy.addRecord('bob', '15')
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// it('deletes a record', () => {
// cy.addRecord('bob', '15')
2020-08-08 05:31:40 +12:00
2020-08-11 02:34:37 +12:00
// cy.contains('bob').should('have.text', 'bob')
// })
2020-08-08 05:31:40 +12:00
})