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:
parent
c81ac76ea8
commit
d6016519e5
8 changed files with 8 additions and 8 deletions
|
|
@ -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',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
|
|||
};
|
||||
},
|
||||
},
|
||||
isBeta: () => false,
|
||||
isBeta: () => true,
|
||||
isProd: () => true,
|
||||
getEnvironment: () => 'prod',
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue