test: Update tests
This updates tests after gating WSL behind 'image-builder.wsl.enabled'.
This commit is contained in:
parent
703a65049f
commit
fc88b09ce6
2 changed files with 13 additions and 4 deletions
|
|
@ -43,7 +43,9 @@ vi.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
|
||||
vi.mock('@unleash/proxy-client-react', () => ({
|
||||
useUnleashContext: () => vi.fn(),
|
||||
useFlag: vi.fn(() => false),
|
||||
useFlag: vi.fn((flag) =>
|
||||
flag === 'image-builder.wsl.enabled' ? true : false
|
||||
),
|
||||
}));
|
||||
|
||||
const selectRhel8 = async () => {
|
||||
|
|
|
|||
|
|
@ -71,9 +71,16 @@ vi.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
|
||||
vi.mock('@unleash/proxy-client-react', () => ({
|
||||
useUnleashContext: () => vi.fn(),
|
||||
useFlag: vi.fn((flag) =>
|
||||
flag === 'image-builder.firstboot.enabled' ? true : false
|
||||
),
|
||||
useFlag: vi.fn((flag) => {
|
||||
switch (flag) {
|
||||
case 'image-builder.firstboot.enabled':
|
||||
return true;
|
||||
case 'image-builder.wsl.enabled':
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}),
|
||||
}));
|
||||
|
||||
const openReleaseMenu = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue