Commit graph

447 commits

Author SHA1 Message Date
Sanne Raymaekers
c0801cd73d src/test: Add test for HyperV generation 2024-12-04 12:37:23 +01:00
Simon Steinbeiss
c4a06e2ac9 CreateImageWizard: Add RHEL10beta search parameter
This means we can easily link to the wizard and pre-select RHEL 10 Beta
which will be nice for the release announcement blog post.
2024-11-29 14:22:37 +01:00
regexowl
b526ad3c60 Wizard: Basic Timezone step
This adds bare bones Timezone step with appropriate file structure and basic unit tests.
2024-11-19 13:01:34 -06:00
Sanne Raymaekers
7b365dcb4d Wizard: handle dos scripts in first boot
Scripts in which lines are terminated by CRLF break the first boot
service, so let's make sure the line termination is correct.
2024-11-14 10:33:44 +01:00
Michal Gold
176c64dd47 Wizard: Add Users step to the wizard (HMS-4902)
This commit adds a new step 'Users' that is enabled only in stage-preview,
and will enable it in stage-stable once IQE tests are ready.
The step is not functional yet, this is just the first step.
2024-11-08 00:26:26 +01:00
regexowl
b84be929bb test: Add "VMware checkbox select and unselect works" test
This adds a new test to check functionality of the bug fix.
2024-11-04 08:44:35 -06:00
Michal Gold
830e22fcdc updating useFlag to omit feature flag from onPrem env 2024-10-30 10:36:18 -05:00
Sanne Raymaekers
cd70d1ff95 Wizard: add RHEL 9 beta
Only exposed in preview.
2024-10-17 10:22:30 +02:00
regexowl
8722d79fdf test: Move and re-enabled Details test
There was a disabled Details test in CreateImageWizard.test.tsx, this moves the test to Details.test.tsx, updates it and enables it again.

The re-enabled tests are checking maximum length of image name and description.
2024-10-14 13:50:36 +03:00
regexowl
42aed9a2b2 test: Clean up Create Image Wizard test a bit
This cleans up the Create Image Wizard test a bit to make it easier to read through the code blocks.
2024-10-10 08:47:49 +02:00
regexowl
4e23c476e8 Wizard/test: Implement keydown for target tiles
This implements onKeyDown functionality for the Public cloud tiles, allowing selecting them with a Space key.

Corresponding test was also re-enabled.
2024-10-10 08:47:49 +02:00
regexowl
49847e9adb test: Enable First boot's shebang test
This re-enables test that checks whether correct error message gets displayed when shebang is missing from the first boot script.
2024-10-08 14:19:38 +02:00
regexowl
d098d25892 test: Cleanup OpenSCAP tests
This cleans up OpenSCAP test file, utilising helper functions we already have and updating names of test and describe blocks to be consistent throughout the test files.
2024-10-07 16:43:22 +03:00
regexowl
3070f55354 test: Move OpenSCAP tests
This moves OpenSCAP tests from `CreateImageWizard.compliance.tsx` test file directly to `Oscap.test.tsx`.
2024-10-07 16:43:22 +03:00
regexowl
b4ac543dfb test: Re-enable tests that failed for Node 18
This re-enables and updates tests that were failing due to insufficient resources when tested with Node 18.
2024-10-07 14:14:18 +03:00
regexowl
edeee97577 test: Cleanup Custom repositories tests
This moves code blocks to helper functions where possible and cleans up the tests a bit.
2024-10-07 14:14:18 +03:00
regexowl
512d6f8859 test: Move Custom repositories tests to Repositories.test.tsx
This moves Custom repositories tests from `CreateImageWizard.content.test.tsx` to `Repositories.test.tsx`.
2024-10-07 14:14:18 +03:00
regexowl
ae5074a83d test: Update test naming
The incorrect "registration" name is bothering me. Also updated the name of the first describe block to match the pattern we have in other test files.
2024-10-07 13:06:13 +03:00
regexowl
7692445572 test: Add a test for combination of OpenSCAP and first boot
This adds a test to check that blueprint request includes enabled services from both OpenSCAP profile and first boot script.
2024-10-01 12:34:30 +02:00
regexowl
ec96df5527 test: Re-enable "First boot request generated correctly" test
This re-enables test that checks whether the request was generated correctly after creating a blueprint that includes a first boot script.
2024-10-01 12:34:30 +02:00
Dominik Vagner
2ef545111f Wizard: remove no repos selected message 2024-09-30 16:58:08 +02:00
Sanne Raymaekers
4c6d277ff1 test: add test for insights compliance step 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
5d2525b7eb test: add mocks and fixtures for compliance 2024-09-25 15:26:09 +02:00
Dominik Vagner
2c0d753d82 fix: unify snapshot date format 2024-09-19 09:12:16 +02:00
regexowl
3c1f8347eb test: Update Edit wizard test
The content steps were surfaced from previously used Content section and we're now testing with all flags set to true. Updating the list of step nav items that should be enabled.
2024-09-16 12:14:34 +02:00
regexowl
dca94cb190 test: Cleanup Review tests
This cleans up Review tests by replacing block of code by helper functions where possible.

The last two tests were updated so that their descriptions match what the tests do.
2024-09-13 14:32:52 +02:00
Anna Vítová
87ba510680 test: Remove mocking of chrome and unleash 2024-09-12 15:03:35 +02:00
Anna Vítová
22c9b0c106 src: Cleanup import modal on close 2024-09-04 17:45:11 +02:00
Anna Vítová
c385417e93 HMS-4459: Use export endpoint 2024-09-04 17:45:11 +02:00
regexowl
3ae642b848 test: Add Review and finish button tests
This add tests to check whether the Review and finish button works properly, sending user to the Details step. And whether it's disabled when the state is invalid.
2024-09-04 01:21:28 +02:00
regexowl
558bb50c34 test: Add revisit step button checks
This adds tests to check that the revisit buttons on the Review step are working correctly.

Also some minor cleanup, namely making case used in the names of describe and test more consistent and moving render functions outside of functions selecting targets to make the structure easier to go through.
2024-09-04 01:21:28 +02:00
Michal Gold
f1bce4b3ba test: move Review tests to specific folder
this commit moves Review tests to specific folder
2024-09-02 15:59:33 +02:00
regexowl
2bb82b70c1 test: Cleanup Packages tests
This cleans up Packages test file after relevant tests were moved there from `CreateImageWizard.content.test.tsx`.
2024-09-02 12:41:51 +02:00
regexowl
578a9549bd test: Cleanup Azure tests
This moves Azure tests from `CreateImageWizard.azure.test.tsx` to `AzureTarget.test.tsx` and cleans up the structure.
2024-08-27 10:20:17 +02:00
regexowl
58ea64162a test: Cleanup Image output tests
This cleans up Image output test file after relevant tests were moved there from `CreateImageWizard.test.tsx`.
2024-08-19 13:51:27 +02:00
regexowl
e2e0a77bd9 test: Rename TargetEnvironment.test.tsx to ImageOutput.test.tsx
This renames TargetEnvironment.test.tsx test file to ImageOutput.test.tsx so the naming is consistent with the other test files.

The file previously contained tests for both Image output step and it's substeps. Since that's no longer true the naming no longer made sense.
2024-08-19 13:51:27 +02:00
regexowl
57e4ed1f4b test: Clean up GCP tests
This cleans up GCP test file after relevant tests were moved there from `CreateImageWizard.test.tsx`.
2024-08-19 12:45:38 +02:00
Michal Gold
2168bc31d8 test: move packages test to Packages.test.tsx file
this commit move relevant packages test to packages.test.tsx
2024-08-19 11:30:02 +02:00
regexowl
34ef6b2b95 test: Clean up AWS tests
This cleans up AWS test file after relevant tests were moved there from `CreateImageWizard.test.tsx`.
2024-08-19 09:33:40 +02:00
regexowl
4fa0ad863b test: Clean up Registration tests and enable a test
This cleans up Registration tests and re-enables "clicking Cancel loads landing page" test.
2024-08-16 14:56:29 +02:00
regexowl
d31e59bcbf test: Clean up FSC tests
This cleans up FSC test file a bit after tests were moved here from `CreateImageWizard.test.tsx`.
2024-08-14 17:21:30 +03:00
regexowl
a48fbb97b7 test: Add new tests 2024-08-14 15:26:08 +02:00
regexowl
1f40269c01 test: Cleanup tests
This cleans up the Registration test file after relevant tests were moved there from `CreateImageWizard.test.tsx`.
2024-08-14 15:26:08 +02:00
regexowl
0dea61bf00 test: Update tests
This updates the tests to reflect changes made to the new registration step.
2024-08-14 15:26:08 +02:00
Michal Gold
c4bbd413b3 test: move relevant test from createImageWizard to targetEnvironment test file
this commit move relvant test from creatreImageWizrad to targetEnvironment test file
2024-08-14 11:10:38 +02:00
Michal Gold
8ffa797df4 FileSystemTest: move relevant tests from createImageWizard to fileSystem
this commit move relevant tests from createImageWizard to fileSystem test
2024-08-13 10:35:42 +02:00
regexowl
d0412db518 test: Move clicking helper functions to wizardTestUtils
As clicking helper functions are used only in the context of Wizard, this moves them to an appropriate place.
2024-08-12 17:46:38 +02:00
regexowl
b7ccc2cca0 testUtils: Merge renderCustomRoutesWithReduxRouter and renderWithReduxRouter
`renderCustomRoutesWithReduxRouter` and `renderWithReduxRouter`are functionally the same apart from routes they use to render components.

We could just use `renderCustomRoutesWithReduxRouter` and use the routes from `renderWithReduxRouter` as a default value for an optional parameter `routes`.
2024-08-12 09:46:10 +02:00
Michal Gold
3c44d9414a createImage: add default name in details step <HMS-4494>
this commit add default name for blueprint name field to be able
to create an image without filling any name
format name: "$OS $ARCH $TARGETS $DATE".
2024-08-12 08:43:26 +02:00
Michal Gold
346c5752b6 RegistrationTest: move relevant tests from createImageWizard to Registration test 2024-08-09 10:18:57 +02:00