fix bun picking up e2e tests

This commit is contained in:
dswbx
2025-04-02 20:50:46 +02:00
parent e3628a3dc8
commit 6f92ef7b74
3 changed files with 1 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
// @ts-check
import { test, expect } from "@playwright/test";
import { testIds } from "../src/ui/lib/config";
test("start page has expected title", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveTitle(/BKND/);
});
test("start page has expected heading", async ({ page }) => {
await page.goto("/");
// Example of checking if a heading with "No entity selected" exists and is visible
const heading = page.getByRole("heading", { name: /No entity selected/i });
await expect(heading).toBeVisible();
});
test("modal opens on button click", async ({ page }) => {
await page.goto("/");
await page.getByTestId(testIds.data.btnCreateEntity).click();
await expect(page.getByRole("dialog")).toBeVisible();
});