Skip to content

Commit 77a73e4

Browse files
committed
Adjust test to account for the container
1 parent 332bfe0 commit 77a73e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/compass-components/src/components/content-with-fallback.spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ describe('ContentWithFallback', function () {
5858
{ container }
5959
);
6060

61-
expect(container.children.length).to.equal(1);
62-
const [contextMenuContainer] = container.children;
61+
expect(container.children.length).to.equal(2);
62+
const [contentContainer, contextMenuContainer] = container.children;
63+
expect(contentContainer.children.length).to.equal(0);
6364
expect(contextMenuContainer.getAttribute('data-testid')).to.equal(
6465
'context-menu-container'
6566
);

0 commit comments

Comments
 (0)