wip: cypress fix

This commit is contained in:
kevmodrome 2020-09-01 11:16:41 +02:00
parent 5de7384295
commit d870ccaf6c
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@ context('Create a Binding', () => {
cy.visit('localhost:4001/_builder') cy.visit('localhost:4001/_builder')
cy.createApp('Binding App', 'Binding App Description') cy.createApp('Binding App', 'Binding App Description')
cy.createTable('dog') cy.createTable('dog')
cy.addColumn('dog', 'name', 'Plain Text')
cy.addRecord(["Rover"])
cy.navigateToFrontend() cy.navigateToFrontend()
}) })
@ -13,7 +15,7 @@ context('Create a Binding', () => {
cy.get("[data-cy=Textfield]").click() cy.get("[data-cy=Textfield]").click()
cy.contains("Heading").click() cy.contains("Heading").click()
cy.get("[data-cy=text-binding-button]").click() cy.get("[data-cy=text-binding-button]").click()
cy.contains('Input 1').click() cy.get("[data-cy=binding-dropdown-modal]").contains('Input 1').click()
cy.contains('Home{{ Input 1 }}') cy.contains('Home{{ Input 1 }}')
}) })

View File

@ -24,7 +24,7 @@
$: ({ instance, context } = groupBy("type", bindableProperties)) $: ({ instance, context } = groupBy("type", bindableProperties))
</script> </script>
<div class="container"> <div class="container" data-cy="binding-dropdown-modal">
<div class="list"> <div class="list">
<Label size="l" color="dark">Objects</Label> <Label size="l" color="dark">Objects</Label>
{#if context} {#if context}