diff --git a/frontend/playwright.config.js b/frontend/playwright.config.js index a158b5f..5f334db 100644 --- a/frontend/playwright.config.js +++ b/frontend/playwright.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { testDir: "./tests", use: { baseURL: process.env.STAGING_URL || "https://gravl.homelab.local", diff --git a/frontend/tests/gravl.spec.js b/frontend/tests/gravl.spec.js index 24da1ae..0166878 100644 --- a/frontend/tests/gravl.spec.js +++ b/frontend/tests/gravl.spec.js @@ -1,4 +1,4 @@ -const { test, expect } = require("@playwright/test"); +import { test, expect } from "@playwright/test"; test("login page loads", async ({ page }) => { await page.goto("/login");