Files
vitest/test/browser/specs/__snapshots__/expect-element-no-awaited.test.ts.snap

24 lines
812 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`should fail for non-awaited expect.element 1`] = `
"
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL |browser (chromium)| expect-element.test.js > not awaited
Error: expect.element(locator).toBeInTheDocument() was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
await expect.element(locator).toBeInTheDocument()
❯ expect-element.test.js:18:33
16| const element = page.getByText("Hello Vitest!");
17|
18| expect.element(element).toBeInTheDocument();
| ^
19| })
20|
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
"
`;