Test: useChrome() mocks isBeta() returns true

The previous commit adjusts the necessary feature flags to expose the
new blueprints table and V2 wizard in stage-preview.

This causes tests where isBeta() == false to fail. This commit changes
the relevant useChrome() mocks such that isBeta() returns true.
This commit is contained in:
lucasgarfield 2024-03-05 15:29:32 +01:00 committed by Lucas Garfield
parent c81ac76ea8
commit d6016519e5
8 changed files with 8 additions and 8 deletions

View file

@ -19,7 +19,7 @@ import '@testing-library/jest-dom';
jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
useChrome: () => ({
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -45,7 +45,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -41,7 +41,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -61,7 +61,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -25,7 +25,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -25,7 +25,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -28,7 +28,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),

View file

@ -29,7 +29,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
};
},
},
isBeta: () => false,
isBeta: () => true,
isProd: () => true,
getEnvironment: () => 'prod',
}),