context('Create a Model', () => { before(() => { cy.visit('localhost:4001/_builder') // https://on.cypress.io/type cy.createApp('Model App', 'Model App Description') }) // https://on.cypress.io/interacting-with-elements it('should create a new model', () => { cy.createModel('dog', 'name', 'age') // Check if model exists cy.get('.title').should('have.text', 'dog') }) it('should add a record', () => { cy.addRecord('bob', '15') cy.contains('bob').should('have.text', 'bob') }) })