2020-09-03 13:02:15 +02:00
|
|
|
xcontext('Create a Binding', () => {
|
2020-08-28 13:57:46 +02:00
|
|
|
before(() => {
|
|
|
|
cy.visit('localhost:4001/_builder')
|
|
|
|
cy.createApp('Binding App', 'Binding App Description')
|
|
|
|
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()
|
2020-09-01 11:16:41 +02:00
|
|
|
cy.get("[data-cy=binding-dropdown-modal]").contains('Input 1').click()
|
2020-09-03 09:45:58 +02:00
|
|
|
cy.get("[data-cy=binding-dropdown-modal] textarea").should('have.value', 'Home{{ Input 1 }}')
|
2020-08-28 13:57:46 +02:00
|
|
|
})
|
|
|
|
})
|