Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected logs for ExpressionAwareNestField.test.tsx #1624

Open
lordrip opened this issue Nov 18, 2024 · 0 comments
Open

Unexpected logs for ExpressionAwareNestField.test.tsx #1624

lordrip opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working canvas/config-form Configuration form related issues good first issue Good for newcomers help wanted Extra attention is needed testing Unit or integration testing

Comments

@lordrip
Copy link
Member

lordrip commented Nov 18, 2024

Please describe the task that needs to be done

When running yarn workspace @kaoto/kaoto run test, there are unexpected logs for

src/components/Form/expression/ExpressionAwareNestField.test.tsx

Logs

 ● Console

    console.error
      Warning: validateDOMNesting(...): <form> cannot appear as a descendant of <form>.
          at form
          at FormBase (/home/rmartinez/repos/kaoto/node_modules/@patternfly/react-core/src/components/Form/Form.tsx:22:3)
          at Form
          at _ (/home/rmartinez/repos/kaoto/node_modules/@kaoto-next/uniforms-patternfly/src/AutoForm.tsx:25:3)
          at /home/rmartinez/repos/kaoto/packages/ui/src/components/Form/CustomAutoForm.tsx:21:50
          at parentRef (/home/rmartinez/repos/kaoto/packages/ui/src/providers/schema-bridge.provider.tsx:22:13)
          at /home/rmartinez/repos/kaoto/packages/ui/src/components/MetadataEditor/MetadataEditor.tsx:21:28
          at TypeaheadEditor (/home/rmartinez/repos/kaoto/packages/ui/src/components/Form/customField/TypeaheadEditor.tsx:33:39)
          at div
          at CardBody (/home/rmartinez/repos/kaoto/node_modules/@patternfly/react-core/src/components/Card/CardBody.tsx:17:3)
          at div
          at CardExpandableContent (/home/rmartinez/repos/kaoto/node_modules/@patternfly/react-core/src/components/Card/CardExpandableContent.tsx:14:3)
          at div
          at Card (/home/rmartinez/repos/kaoto/node_modules/@patternfly/react-core/src/components/Card/Card.tsx:89:3)
          at expressionModel (/home/rmartinez/repos/kaoto/packages/ui/src/components/Form/expression/ExpressionEditor.tsx:22:3)
          at div
          at CardBody (/home/rmartinez/repos/kaoto/node_modules/@patternfly/react-core/src/components/Card/CardBody.tsx:17:3)
          at div
          at Card (/home/rmartinez/repos/kaoto/node_modules/@patternfly/react-core/src/components/Card/Card.tsx:89:3)
          at children (/home/rmartinez/repos/kaoto/packages/ui/src/components/Form/expression/ExpressionAwareNestField.tsx:28:6)
          at name (/home/rmartinez/repos/kaoto/node_modules/uniforms/cjs/connectField.js:39:70)
          at form
          at AutoForm (/home/rmartinez/repos/kaoto/node_modules/uniforms/cjs/AutoForm.js:14:13)

      52 |     });
@lordrip lordrip added the bug Something isn't working label Nov 18, 2024
@lordrip lordrip added good first issue Good for newcomers help wanted Extra attention is needed canvas/config-form Configuration form related issues testing Unit or integration testing labels Nov 18, 2024
@igarashitm igarashitm moved this from New to Backlog in Kanban Board Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working canvas/config-form Configuration form related issues good first issue Good for newcomers help wanted Extra attention is needed testing Unit or integration testing
Projects
Status: Backlog
Development

No branches or pull requests

1 participant