Skip to content

Commit

Permalink
asserting no navigation in secondary AppLayout when it has navigation…
Browse files Browse the repository at this point in the history
…Hide prop
  • Loading branch information
dpitcock committed Oct 18, 2024
1 parent 1febaa2 commit c20704f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app-layout/__tests__/multi-layout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describeEachAppLayout({ themes: ['refresh-toolbar'], sizes: ['desktop'] }, () =>
expect(secondLayout.findNavigationToggle()).toBeFalsy();
});

test('merges tools from two instances', async () => {
test('merges tools from two instances with navigation hidden in secondary', async () => {
const { firstLayout, secondLayout } = await renderAsync(
<AppLayout
{...defaultAppLayoutProps}
Expand All @@ -108,6 +108,8 @@ describeEachAppLayout({ themes: ['refresh-toolbar'], sizes: ['desktop'] }, () =>
expect(createWrapper().findAllByClassName(testUtilStyles.tools)).toHaveLength(1);

firstLayout.findToolsToggle().click();
expect(secondLayout.findNavigation()).toBeFalsy();
expect(secondLayout.findNavigationToggle()).toBeFalsy();
expect(isDrawerClosed(secondLayout.findTools())).toEqual(false);
});

Expand Down

0 comments on commit c20704f

Please sign in to comment.