debian-image-builder-frontend/src/test
lucasgarfield 61b23216f4 V2 Wizard: OpenSCAP edit tests
Edit mode is now fully tested and working for OpenSCAP profiles. A
handler for the PUT request was added and the fixtures were updated to
support this.

`EditImageWizard.tsx`: Previously we dispatched `initializeWizard()`
while waiting for the blueprintDetails to load. This meant that the
state was incorrect (empty) while the blueprintDetails request was
in flight.

`requestMapper.tsx`: Correctly populate state in edit mode if the
blueprint contains a custom file system – previously custom mountpoints
were dropped and automatic mode was selected.

`spyOnRequest()`: Differentiate between request types (e.g. GET, PUT)
for the same endpoint.
2024-04-30 15:13:50 +02:00
..
Components V2 Wizard: OpenSCAP edit tests 2024-04-30 15:13:50 +02:00
fixtures V2 Wizard: OpenSCAP edit tests 2024-04-30 15:13:50 +02:00
mocks V2 Wizard: OpenSCAP edit tests 2024-04-30 15:13:50 +02:00
.eslintrc ESLint: Add no-debugging-utils rule 2024-01-25 15:23:57 +01:00
jest.setup.js HMS-3796: Add snapshot date selection to wizard 2024-04-25 14:45:50 +02:00
README.md Add README with info around testing 2020-11-03 15:31:40 +01:00
testUtils.js ImagesTable: Convert ImagesTable to Typescript & RTK Query 2023-09-18 10:35:04 +02:00

Testing information

Code coverage

Code coverage is recorded in codecov.io. This information comes only from unit tests and for the time being we're not concerned with collecting coverage information from integration tests.

It must be over 85% as required by Insights QE!