Skip to content

Commit 388351d

Browse files
committed
Update databases-collections to allow immediate removal of the heading
1 parent 58caaad commit 388351d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/databases-collections/src/stores/create-namespace.spec.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ describe('CreateNamespacePlugin', function () {
101101
});
102102

103103
userEvent.click(screen.getByRole('button', { name: 'Cancel' }));
104-
await waitForElementToBeRemoved(
105-
screen.queryByRole('heading', { name: 'Create Database' })
106-
);
104+
expect(screen.queryByRole('heading', { name: 'Create Database' })).to.not
105+
.exist;
107106
expect(createCollectionSpy).to.not.be.called;
108107
});
109108

0 commit comments

Comments
 (0)