* trigger queued mounted events immediately after hydrating * add a playwright test to prevent regressions
11 lines
317 B
JavaScript
11 lines
317 B
JavaScript
// @ts-check
|
|
const { test, expect } = require("@playwright/test");
|
|
|
|
test("hydration", async ({ page }) => {
|
|
await page.goto("http://localhost:7777");
|
|
|
|
// Expect the page to contain the pending text.
|
|
const main = page.locator("#main");
|
|
await expect(main).toContainText("The mounted event was triggered.");
|
|
});
|