mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
2ca1c51fdc
* test(error_boundary): open app * test(error_boundary): click up arrow * test(error_boundary): click down arrow * test(error_boundary): type number * test(error_boundary): clear number * fix(build): clean trunk directories * fix(test-report): detect unit tests * ci(build): echo stop trunk
23 lines
611 B
TypeScript
23 lines
611 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
import { HomePage } from "./fixtures/home_page";
|
|
|
|
test.describe("Clear Number", () => {
|
|
test("should see the error message", async ({ page }) => {
|
|
const ui = new HomePage(page);
|
|
await ui.goto();
|
|
|
|
await ui.clearInput();
|
|
|
|
await expect(ui.errorMessage).toHaveText("Not a number! Errors: ");
|
|
});
|
|
test("should see the error list", async ({ page }) => {
|
|
const ui = new HomePage(page);
|
|
await ui.goto();
|
|
|
|
await ui.clearInput();
|
|
|
|
await expect(ui.errorList).toHaveText(
|
|
"cannot parse integer from empty string"
|
|
);
|
|
});
|
|
});
|