mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
fix: now feature table does not dissapear (#8554)
Feature table does not dissapear when onboarding and filter settings hides all features
This commit is contained in:
parent
622998c62e
commit
eaab9db60d
@ -82,8 +82,7 @@ test('selects project features', async () => {
|
|||||||
expect(screen.queryByTestId(BATCH_SELECTED_COUNT)).not.toBeInTheDocument();
|
expect(screen.queryByTestId(BATCH_SELECTED_COUNT)).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: stopped working after react v18 upgrade
|
test('filters by tag', async () => {
|
||||||
test.skip('filters by tag', async () => {
|
|
||||||
setupApi();
|
setupApi();
|
||||||
render(
|
render(
|
||||||
<Routes>
|
<Routes>
|
||||||
@ -134,8 +133,7 @@ test('filters by flag type', async () => {
|
|||||||
await screen.findByText('Operational');
|
await screen.findByText('Operational');
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: stopped working after react v18 upgrade
|
test('filters by flag author', async () => {
|
||||||
test.skip('filters by flag author', async () => {
|
|
||||||
setupApi();
|
setupApi();
|
||||||
render(
|
render(
|
||||||
<Routes>
|
<Routes>
|
||||||
|
@ -134,8 +134,8 @@ export const ProjectFeatureToggles = ({
|
|||||||
onboardingUIEnabled &&
|
onboardingUIEnabled &&
|
||||||
project.onboardingStatus.status !== 'onboarded' &&
|
project.onboardingStatus.status !== 'onboarded' &&
|
||||||
onboardingFlow === 'visible';
|
onboardingFlow === 'visible';
|
||||||
const showFeaturesTable =
|
const noFeaturesExistInProject = project.featureTypeCounts?.length === 0;
|
||||||
(total !== undefined && total > 0) || notOnboarding;
|
const showFeaturesTable = !noFeaturesExistInProject || notOnboarding;
|
||||||
|
|
||||||
const trackOnboardingFinish = (sdkName: string) => {
|
const trackOnboardingFinish = (sdkName: string) => {
|
||||||
if (!isOnboarding) {
|
if (!isOnboarding) {
|
||||||
|
Loading…
Reference in New Issue
Block a user