Skip to content

Commit

Permalink
small fixes to tests, clearifying test names
Browse files Browse the repository at this point in the history
  • Loading branch information
dpitcock committed Oct 18, 2024
1 parent c20704f commit 8ab819e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app-layout/__tests__/multi-layout-props.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable simple-import-sort/imports */
import React from 'react';

import {
mergeMultiAppLayoutProps,
SharedMultiAppLayoutProps,
Expand Down
4 changes: 2 additions & 2 deletions src/app-layout/__tests__/multi-layout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describeEachAppLayout({ themes: ['refresh-toolbar'], sizes: ['desktop'] }, () =>
expect(isDrawerClosed(firstLayout.findNavigation())).toEqual(false);
});

test('merges navigation from two instances with navigation hidden in primary', async () => {
test('navigationHide in primary is respected when navigation is defined when merging from two instances', async () => {
const { firstLayout, secondLayout } = await renderAsync(
<AppLayout
{...defaultAppLayoutProps}
Expand All @@ -94,7 +94,7 @@ describeEachAppLayout({ themes: ['refresh-toolbar'], sizes: ['desktop'] }, () =>
expect(secondLayout.findNavigationToggle()).toBeFalsy();
});

test('merges tools from two instances with navigation hidden in secondary', async () => {
test('merges tools from two instances with where navigationHide is true in secondary', async () => {
const { firstLayout, secondLayout } = await renderAsync(
<AppLayout
{...defaultAppLayoutProps}
Expand Down

0 comments on commit 8ab819e

Please sign in to comment.