Skip to content

Strange render issue in tests #5937

@andlbrei

Description

@andlbrei

🐛 Bug Report

After migrating components from using explicit required props in PushContainer to using the defined JSON schema in Form.Handler (feature from #5567) there seems to be issues with rendering, but I have only experienced this in tests.

Not sure how important this is to fix, but it might be a sign of issues that could manifest in a running app?

To Reproduce

https://stackblitz.com/edit/eufemia-starter-xvv8iz1m?file=src%2FInternationalTransactions.tsx,src%2FInternationalTransactions.test.tsx

Search for BUG or navigate to line 255 in InternationalTransactions.tsx to find the trigger for the bug; setting required to false or removing it.

The section has pre-defined data that makes an edit container open. This is viewable when running the app via npm run dev.
When running the test with the trigger enabled, the section is not rendered.
Behaviour is unchanged in the running app regardless of the trigger being enabled or not.

Expected behavior

Expect components to be testable and behave similar in tests as they do in running code.

Eufemia Version

10.89.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions