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
Jakub Rusz
3fe703e60f
Fix typo in Snapshot step
...
Not actually a radio.
2024-07-25 17:01:53 +02:00
Michal Gold
2c61a70fb4
buildImagesButton: change the name of build selected button <HMS-4066>
...
this commit change the name of build selected button to build images
2024-07-25 15:49:23 +02:00
regexowl
c3da0af22c
test: Remove deprecated flags from mocking
...
`image-builder.new-wizard.enabled`, `image-builder.wizard.oscap.enabled` and `image-builder.enable-content-sources` are no longer used in the code base and thus don't need to be mocked in tests.
2024-07-25 14:45:35 +02:00
Michal Gold
1b35aa88da
imageTable: link images to parent blueprint <HMS-4353>
...
this commit add link to parent blueprint from specific image
2024-07-25 09:35:05 +02:00
regexowl
16422e96ce
test: Improve stability of 'check error details' test
...
This adds awaiting to a few expects, hopefully improving the stability of the test.
2024-07-23 16:23:04 +02:00
regexowl
eb2cfe9a2f
test: Move @testing-library/jest-dom import to test setup file
...
This removes `@testing-library/jest-dom` from single test files and adds it to the shared setup.ts file.
2024-07-22 15:49:18 +02:00
regexowl
a8fea7c377
devDeps: Bump msw from 2.3.1 to 2.3.2
...
This manually bumps msw from 2.3.1 to 2.3.2
2024-07-19 15:28:31 +02:00
Ondrej Ezr
1febbe4620
test: cleanup unnecessary polyfills
2024-07-19 11:03:04 +02:00
Ondrej Ezr
df993c7fc2
test: Add nodeFetch back
2024-07-18 17:26:38 +02:00
Ondrej Ezr
69b7c574ae
test: await click instead of element not in doc
2024-07-18 17:26:38 +02:00
Ondrej Ezr
7d537bcb66
test: use basic JS types for composes
2024-07-18 17:26:38 +02:00
Ondrej Ezr
a1a49806e1
rtk: Add base to url and fix mock handler
2024-07-18 17:26:38 +02:00
regexowl
797ceddcd1
test: Update handlers in test files
...
This updates handlers used directly in the test files to match current API.
2024-07-18 17:26:38 +02:00
regexowl
501323b476
MSW: Bump msw from 1.2.3 to 2.3.1
...
This bumps Mock Service Worker and updates the handlers.
2024-07-18 17:26:38 +02:00
regexowl
4e24dc35b6
test: Silence the DOM dump in test output
...
This silences the DOM dump logged into test output by testing-library while keeping all the relevant information about the test failure in the output.
2024-07-17 21:22:32 +02:00
regexowl
e2397b90d4
test: Fix act warnings
...
This removes the `act()` warnings from the test output.
2024-07-17 12:25:33 +02:00
regexowl
4fb37c187e
src: Rename "V2" folders to just Wizard
...
This replaces all occurences of "CreateImageWizardV2" with just "CreateImageWizard" as it is the only version now.
2024-07-17 11:17:06 +02:00
regexowl
4389318de8
test: Update EditImageWizard test file for vitest
...
This adds mocks and imports needed to make the newly added EditImageWizard test file pass with vitest.
2024-07-16 16:55:31 +02:00
regexowl
a5f69a2559
test: Move shared imports to setup.ts file
2024-07-16 16:55:31 +02:00
regexowl
144832f2f8
test: Temporarily disable three tests
...
This temporarily disables three tests:
- target environment tiles are keyboard selectable -> can't make the behaviour correct even in mocked browser, it's possible this test was passing dues to early exit
- image name invalid for more than 100 chars and description for 250 -> this test times out in waitFor for the typing action. We have other valid/invalid name tests which could probably replace this one to not overwhelm the test suite with awaiting a large amount of text
- validate first boot request -> `monaco-editor` mock will be probably needed to make this one pass as it's not included in jsdom and ends in `Ne. init is not a function` error
2024-07-16 16:55:31 +02:00
regexowl
98c17e55df
test: Move beforeEach blocks inside describe
...
This moved the `beforeEach` blocks inside the `describe` blocks as per documentation.
Previously the code inside `beforeEach` didn't trigger which lead to problems with asynchrocinity as mocks didn't get cleared.
2024-07-16 16:55:31 +02:00