Open cnotv opened 2 years ago
Add tests based on mocked data from the server to populate the options and display component without errors.
Since ignoring returned specific data from the state in the tests for https://github.com/rancher/dashboard/issues/7391 has led us to an issue (https://github.com/rancher/dashboard/issues/7495) while adjusting the code. For the specific case, we should ensure that the component is displayed in case of no preferences object or selection, similarly to the existing test setup, but display a fallback as in no selection.
E2E would be prioritized first before we do this.
Description
Add tests based on mocked data from the server to populate the options and display component without errors.
Context
Since ignoring returned specific data from the state in the tests for https://github.com/rancher/dashboard/issues/7391 has led us to an issue (https://github.com/rancher/dashboard/issues/7495) while adjusting the code. For the specific case, we should ensure that the component is displayed in case of no preferences object or selection, similarly to the existing test setup, but display a fallback as in no selection.