Skip to content

Commit 359f8ea

Browse files
author
infodusha
committed
fix: tests
1 parent f405ce7 commit 359f8ea

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

example/app-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<header>
3-
<h1>define-html</h1>
3+
<h1>define-html example</h1>
44
<span class="counter">0</span>
55
</header>
66
</template>

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
},
2727
],
2828
webServer: {
29-
command: "npm run start",
29+
command: "bun run start",
3030
url: "http://localhost:3000",
3131
reuseExistingServer: !process.env.CI,
3232
},

tests/example.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ test("opens example page", async ({ page }) => {
2323
});
2424

2525
test("app-header has content", async ({ page }) => {
26-
const appHeader = page.locator("tag=app-root").first();
27-
const appHeaderHtml = await appHeader.innerHTML();
28-
expect(appHeaderHtml.length).toBeGreaterThan(0);
26+
const appHeader = page.locator("app-header").first();
27+
await expect(appHeader).toContainText("define-html example");
2928
});

0 commit comments

Comments
 (0)