Skip to content

Commit

Permalink
Fix browser test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Oct 15, 2024
1 parent 483f429 commit c8b5d02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/js-sdk/tests/runtimes/browser/run.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ function E2BTest() {
return <div>{text}</div>
}
test('browser test', async () => {
const screen = render(<E2BTest />)
render(<E2BTest />)
await waitFor(
() => expect.element(page.getByText('Hello World')).toBeVisible(),
{ timeout: 5000 }
)
await expect.element(page.getByText('Hello World')).toBeVisible()
expect(screen.container).toMatchSnapshot()
})

0 comments on commit c8b5d02

Please sign in to comment.