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
regexowl
2caddb66c7
Wizard: "Always blue" update to the Registration step
...
This updates the Registration step as per recent mocks.
There is now only one checkbox which switches between (register everything now / register later). When the checkbox is not checked "register later" option gets selected, activation key dropdown gets disabled and information about activation keys is hidden to support the fact that no activation key will be used.
When the checkbox is checked it either loads previously used activation key in the case of "on edit" scenario, looks for a recently used activation key in localStorage or in a case there are no activationKeys automatically creates and selects one.
The Next button gets disabled only when "register-now" is selected, but there is no activationKey selected. As the option to clear the dropdown got removed this should occur only when fetching/creating activation key.
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
regexowl
e6a35eaf79
Wizard: Rename FileSystemPartitionMode to FileSystemConfigurationType
...
This renames `FileSystemPartitionMode` to `FileSystemConfigurationType` in preparation to expose raw/lvm partitioning in the UI.
2024-08-13 14:59:23 +03: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
a3abc29f51
Wizard: Add eslint-disable to useEffect
...
This disables `react-hooks/exhaustive-deps` rule for dependency arrays that should run only once on mount and therefore need to stay empty.
2024-08-12 13:09:58 +03: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
regexowl
5d73adfbd6
src: Absolute imports
...
While running build there was a bunch of PatternFly imports that were resolved as undefined. This adds an absolute path for each of those imports.
2024-08-09 09:22:17 +02:00
regexowl
1554d78cba
test: Move mocks to setup file
...
This moves all the mocks used throughout our test files into the test setup file.
2024-08-08 16:53:49 +02:00
regexowl
79d54eed7b
Wizard: Fix information rendered in package recommendations
...
When a package got selected and deselected again, landing on 0 for selected packages, the information shown in the package recommendations was "Select packages to generate recommendations.No recommendations found for the set of selected packages", this updates the logic to separate the messages.
2024-08-08 12:50:56 +02:00
Anna Vítová
a799d70a85
blueprint: Add preview label to import button
2024-08-08 12:56:27 +03:00
regexowl
5e75c46b60
devDeps: Manual bump msw from 2.3.2 to 2.3.5
...
This bumps msw from 2.3.2 to 2.3.5.
2024-08-06 17:01:15 +03:00
regexowl
912b56f735
test: Move util function to wizardTestUtils
...
This moves `selectCustomRepo` to `wizardTestUtils.tsx`
Since the function was originally imported into `Packages.test.tsx` from `CreateImageWizard.content.test.tsx` the entire content suite was re-run under Packages suite each time. This solves the issue.
2024-08-06 15:46:51 +03:00
Ondrej Ezr
e0b33fd6f5
Bluperint: Allow selecting targets from diff modal
2024-08-06 11:16:34 +02:00
Ondrej Ezr
e1057208f3
Blueprint: show basic version diff
2024-08-05 18:48:08 +02:00
regexowl
933e65d590
Wizard: Update docs after move to new preview
...
`/preview` is no longer used in url.
2024-08-05 13:54:13 +02:00
regexowl
37dfe8584c
test: Fix async logic in Oscap flakes
...
`remove profile` and `change profile` test in `Oscap.test.tsx` suite were flaking for Node 18.x, this should fix the issue.
2024-08-05 12:52:06 +02:00
regexowl
9707278d01
src: Disable some linting errors
...
This disables linting errors that would require more changes.
2024-08-05 11:51:20 +02:00
regexowl
44dc900370
src: Fix new errors after linter bump
...
This addresses problems caused by dependency updates.
2024-08-05 11:51:20 +02:00
Michal Gold
4b85ad064a
createImageWizrad: add scroll to the creation image
...
this commit change the resoluiton of wizard__outer-wrap to solve
the problem that user should scroll to see the next, backl and cancel buttons
2024-08-05 09:07:48 +02:00
regexowl
9a1d348a77
src: Resolve problems ater updating API
...
'centos-8' was dropped from Distributions, causing a few problems. This resolves them.
2024-08-02 11:31:20 +02:00
regexowl
434c90a6b8
api: Update image-builder API
...
This updates image-builder API by running `npm run api`.
2024-08-02 11:31:20 +02:00
regexowl
8a5dea7abf
Wizard: Fix On Edit startIndex
...
With Snapshotting being only hidden startIndex needs to be updated.
2024-08-01 18:05:01 +02:00
regexowl
2febf98e93
test: Update tests
...
Add mocking to tests where needed.
2024-08-01 18:05:01 +02:00
regexowl
d88cd216a5
Wizard: Add isHidden to snapshotting step
...
Replace conditional rendering with `isHidden` for snapshotting step.
2024-08-01 18:05:01 +02:00
regexowl
e891b0dc04
test: Add flag mocks
...
This mocks 'image-builder.snapshots.enabled' where needed.
2024-08-01 17:34:03 +02:00
regexowl
3174dbd706
Wizard: Gate snapshots behind an unleash flag
...
This gates snapshots behind a 'image-builder.snapshots.enabled' unleash flag instead of `isBeta()`.
2024-08-01 17:34:03 +02:00
regexowl
fc88b09ce6
test: Update tests
...
This updates tests after gating WSL behind 'image-builder.wsl.enabled'.
2024-08-01 17:24:42 +02:00
regexowl
703a65049f
Wizard: Migrate WSL from isBeta() to unleash flag
...
This gates WSL target behind an 'image-builder.wsl.enabled' unleash flag instead of `isBeta()`.
2024-08-01 17:24:42 +02:00
regexowl
fddf520864
Wizard: Fix nav issues On Edit
...
Since the FirstBoot step is now always rendered but conditionally hidden, Wizard was opening on the Details step in Edit.
2024-08-01 17:16:36 +02:00
regexowl
8ee2bad55e
test: Add flag mocks
...
This adds mocked 'image-builder.firstboot.enabled' where needed.
2024-08-01 17:16:36 +02:00
regexowl
8dd042aa05
Wizard: Fix death by thousand reviews
...
When switching between preview and non-preview the Wizard nav got messy. This should fix the problem.
2024-08-01 17:16:36 +02:00
regexowl
b0725c054e
Wizard: Replace isBeta() with conditional flag
...
This replaces `isBeta()` with a constraint added to the 'image-builder.pkgrecs.enabled' unleash flag.
2024-08-01 13:17:59 +02:00
Sanne Raymaekers
eab407c09e
Wizard: Add tests for repositories and snapshot steps
...
Tests the bulk select and verifies disabled repositories.
2024-07-31 16:30:01 +02:00
Sanne Raymaekers
90f7ce111a
Wizard: Fix bulk select on repositories step
...
Don't select repositories that are disabled.
2024-07-31 16:30:01 +02:00
regexowl
fee43d8917
ImagesTable: Update wording of CentOS 8 alert
...
This adds information about CentOS 8 being automatically replaces with CentOS 9 when editing a blueprint.
2024-07-30 16:16:43 +02:00
regexowl
517ff8ccd3
requestMapper: Automatically replace CentOS 8 with CentOS 9
...
CentOS 8 was deprecated and is no longer used, but 'On Edit' for a no longer valid blueprint with 'centos-8' as their distribution defaulted to RHEL 9.
2024-07-30 16:16:43 +02:00
regexowl
2bbec0b034
test: Temporarily disable flakey Oscap tests
...
The disabled tests are flaking for Node 18.x only. I'm quite sure the problem lies within async. Working on a fix.
2024-07-30 12:12:21 +03:00
regexowl
a9bf175403
test: Disable a test and update few others
...
Test `Repositories edit mode modal pops up when deselecting previously used repository` is temporarily disabled. Also there were some early exits, the awaiting should do the trick.
2024-07-29 19:20:14 +02:00
Sanne Raymaekers
4ebd0cec36
Wizard: disable non-snapshot repositories when needed
...
If a snapshot date is selected, all repositories need to have
snapshotting enabled.
2024-07-29 14:32:09 +02:00
regexowl
802525edbc
test: Move compliance On Recreate test to On Edit
...
This migrates a test from previously used On Recreate to current On Edit.
2024-07-29 13:24:30 +02:00
Ondrej Ezr
dbfa934b38
Firstboot: validate shebang is defined
2024-07-26 11:57:24 +02:00
regexowl
6e138b5274
lint: Fix linting error
2024-07-26 10:49:36 +02:00
Simon Steinbeiss
3b83a6a72b
wizard/registration: Add missing article (typo)
2024-07-26 10:49:36 +02:00
regexowl
cba54c54c6
test: Add retry to the flakiest tests
...
This adds three possible retries to three of the flakiest tests.
2024-07-25 19:22:05 +02:00