mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-21 16:52:40 +00:00
* fix(website): render phone mockups correctly in Safari Replace trigonometric CSS scaling with measured numeric ratios after Safari placed phone content outside its clipped frames. Scale desktop mockup corners with the frame so they remain proportional on mobile. * test(website): expose the website browser test suite * test(website): run mockup regressions in CI
21 lines
646 B
TypeScript
21 lines
646 B
TypeScript
import { defineConfig, devices } from "playwright/test";
|
|
|
|
const baseURL = process.env.WEBSITE_TEST_URL ?? "http://127.0.0.1:8187";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
workers: 1,
|
|
use: { baseURL, screenshot: "only-on-failure", trace: "retain-on-failure" },
|
|
projects: [
|
|
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
|
{ name: "webkit", use: { ...devices["Desktop Safari"] } },
|
|
],
|
|
webServer: process.env.WEBSITE_TEST_URL
|
|
? undefined
|
|
: {
|
|
command: "npm run dev -- --host 127.0.0.1 --port 8187 --strictPort",
|
|
url: baseURL,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
});
|