Skip to content

Commit 3f49e80

Browse files
committed
navbartest
1 parent 2b2dd30 commit 3f49e80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

__tests__/NavBar.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ describe('NavBar Component', () => {
114114

115115
console.log('After rendering NavBar');
116116

117-
const publishButton = getByText('Publish');
118-
fireEvent.click(publishButton);
117+
await act(async () => {
118+
const publishButton = getByText('Publish');
119+
fireEvent.click(publishButton);
120+
});
119121
});
120122

121123
it('handles publish correctly with new project', async () => {

0 commit comments

Comments
 (0)