Skip to content

Commit

Permalink
rm guided onboarding test from nav
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Oct 26, 2022
1 parent e718c72 commit 4af82c5
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,25 +187,4 @@ describe('useSecuritySolutionNavigation', () => {
});
});
});

describe('Guided onboarding tour', () => {
it('nav can be collapsed if tour is not shown', () => {
const { result } = renderHook<{}, KibanaPageTemplateProps['solutionNav']>(
() => useSecuritySolutionNavigation(),
{ wrapper: TestProviders }
);

expect(result.current?.canBeCollapsed).toBe(true);
});
it(`nav can't be collapsed if tour is shown`, () => {
(useTourContext as jest.Mock).mockReturnValue({ isTourShown: true });

const { result } = renderHook<{}, KibanaPageTemplateProps['solutionNav']>(
() => useSecuritySolutionNavigation(),
{ wrapper: TestProviders }
);

expect(result.current?.canBeCollapsed).toBe(false);
});
});
});

0 comments on commit 4af82c5

Please sign in to comment.