Skip to content

Commit 4fc2ee7

Browse files
committed
chore(components): clarify comments
1 parent 93d5b09 commit 4fc2ee7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/compass-components/src/components/drawer-portal.spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('DrawerSection', function () {
5454
});
5555

5656
// Doesn't really matter, but leafygreen uses these as keys when rendering and
57-
// this produces a ton of warnings in the logs
57+
// this produces a ton of warnings in the logs if they are not unique
5858
const icons = ['ArrowDown', 'CaretDown', 'ChevronDown'] as const;
5959

6060
it('switches drawer content when selecting a different section in the toolbar', async function () {
@@ -157,7 +157,8 @@ describe('DrawerSection', function () {
157157
});
158158

159159
expect(
160-
// Specifically a selector for the drawer content section
160+
// Specifically a selector for the drawer content section, not the whole
161+
// drawer with toolbar
161162
screen.getByTestId('lg-drawer')
162163
).to.have.attribute('aria-hidden', 'true');
163164
});

0 commit comments

Comments
 (0)