21 lines
644 B
JavaScript
21 lines
644 B
JavaScript
context('Create a Binding', () => {
|
|
before(() => {
|
|
cy.visit('localhost:4001/_builder')
|
|
cy.createApp('Binding App', 'Binding App Description')
|
|
cy.createTable('dog')
|
|
cy.navigateToFrontend()
|
|
})
|
|
|
|
it('add an input binding', () => {
|
|
cy.get(".nav-items-container").contains('Home').click()
|
|
cy.contains("Add").click()
|
|
cy.get("[data-cy=Input]").click()
|
|
cy.get("[data-cy=Textfield]").click()
|
|
cy.contains("Heading").click()
|
|
cy.get("[data-cy=text-binding-button]").click()
|
|
cy.contains('Input 1').click()
|
|
cy.contains('Home{{ Input 1 }}')
|
|
|
|
})
|
|
})
|