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

Description

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.

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Tino R. December 18, 2024 at 5:47 PM

Before working on this, please note that the current test setup is flawed.
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).

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Sprint

Development Team

Leipzig

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 18, 2024 at 4:53 PM
Updated January 9, 2025 at 9:03 AM
Resolved January 9, 2025 at 9:03 AM
TestRail: Cases
TestRail: Runs