ui-finc-select: adapt index.test.js and add route tests

Description

See

In test suite src/index.test.js is randomly failing these two tests:
should render SourceViewRoute and should render CollectionViewRoute with this error:

I suggest it is, because the view-component is called with required data for the <List>-component, but in the test the data is empty.

 

The mentioned test should not test the rendering of individual <...Route> components, but the rendering of the <FincConfig> component.
This would include the following tests:

  • <Settings> should be rendered depending on showSettings

  • <...Route> components should be rendered depending on path

  • All components should be mocked

Tests for individual <...Route> components should go into their corresponding files (e.g. SourceCreateRoute.test.js).

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:
Done

Details

Assignee

Reporter

Tester Assignee

Priority

Sprint

Development Team

Leipzig

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created January 8, 2025 at 11:55 AM
Updated January 15, 2025 at 9:15 AM
Resolved January 15, 2025 at 9:15 AM
TestRail: Cases
TestRail: Runs