Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
infodusha committed Jul 30, 2024
1 parent f405ce7 commit 359f8ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/app-header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<header>
<h1>define-html</h1>
<h1>define-html example</h1>
<span class="counter">0</span>
</header>
</template>
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
},
],
webServer: {
command: "npm run start",
command: "bun run start",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},
Expand Down
5 changes: 2 additions & 3 deletions tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

0 comments on commit 359f8ea

Please sign in to comment.