Buckets:
| import { expect, type Page } from "@playwright/test" | |
| export function trackPageErrors(page: Page) { | |
| const errors: string[] = [] | |
| page.on("console", (message) => { | |
| if (message.type() === "error") errors.push(message.text()) | |
| }) | |
| page.on("pageerror", (error) => errors.push(error.stack ?? error.message)) | |
| return errors | |
| } | |
| export function expectNoSmokeErrors(consoleErrors: string[], toastErrors: string[], forbiddenText: string[]) { | |
| expect({ consoleErrors, toastErrors, forbiddenText }).toEqual({ | |
| consoleErrors: [], | |
| toastErrors: [], | |
| forbiddenText: [], | |
| }) | |
| } | |
Xet Storage Details
- Size:
- 582 Bytes
- Xet hash:
- 7b4a6deda47c959e638b30527fe94b68efd503354e7c787e784bc7ea407de601
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.