mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
24 lines
812 B
Plaintext
24 lines
812 B
Plaintext
// 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]⎯
|
||
|
||
"
|
||
`;
|