diff --git a/example/app-header.html b/example/app-header.html index 54c09a9..3be7f2b 100644 --- a/example/app-header.html +++ b/example/app-header.html @@ -1,6 +1,6 @@ diff --git a/playwright.config.ts b/playwright.config.ts index 149ddb2..e20eb70 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -26,7 +26,7 @@ export default defineConfig({ }, ], webServer: { - command: "npm run start", + command: "bun run start", url: "http://localhost:3000", reuseExistingServer: !process.env.CI, }, diff --git a/tests/example.spec.ts b/tests/example.spec.ts index 6f7abf7..66b5851 100644 --- a/tests/example.spec.ts +++ b/tests/example.spec.ts @@ -23,7 +23,6 @@ test("opens example page", async ({ page }) => { }); test("app-header has content", async ({ page }) => { - const appHeader = page.locator("tag=app-root").first(); - const appHeaderHtml = await appHeader.innerHTML(); - expect(appHeaderHtml.length).toBeGreaterThan(0); + const appHeader = page.locator("app-header").first(); + await expect(appHeader).toContainText("define-html example"); });