kevmodrome
6 years ago
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
2 changed files with
4 additions and
2 deletions
-
packages/builder/cypress/integration/createBinding.spec.js
-
packages/builder/src/components/userInterface/BindingDropdown.svelte
|
|
@ -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 }}') |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
@ -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} |
|
|
|