mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
* Add e2e testing for frontend * Hopefully working CI/CD for playwright * Fix run name * Trying to fix the CI/CD stuff * Try this again, although Vite apparently has playwright? * Fix vitetest * Add registration tests * Safer kill of testing dependencies * These might not last. * feat: Add iPhone and Android device testing * fix: Minor fixes, set registration to "fixme" as it fails frequently for some reason. * fix: Make sure the OS dependencies get installed * fix: For now remove mobile, they seem to be very hit or miss. * Use sharding based testing * Fix some minor mess ups * Forgot PNPM for the merge
30 lines
712 B
TypeScript
30 lines
712 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 1,
|
|
reporter: process.env.CI ? "blob" : "html",
|
|
use: {
|
|
baseURL: process.env.E2E_BASE_URL || "http://localhost:3000",
|
|
trace: "on-all-retries",
|
|
video: "retry-with-video",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
{
|
|
name: "firefox",
|
|
use: { ...devices["Desktop Firefox"] },
|
|
},
|
|
{
|
|
name: "webkit",
|
|
use: { ...devices["Desktop Safari"] },
|
|
},
|
|
],
|
|
globalTeardown: require.resolve("./playwright.teardown"),
|
|
});
|