fix: unify landing glyph animation with pinned site fonts
Reference site / build (push) Canceled after 0s
Reference site / build (push) Canceled after 0s
This commit is contained in:
@@ -2,10 +2,11 @@ import './plugins/environment.mjs';
|
||||
import { defineConfig } from '@playwright/test';
|
||||
|
||||
const base = process.env.SITE_BASE?.replace(/\/$/, '') || '';
|
||||
const port = process.env.SITE_TEST_PORT || '4322';
|
||||
export default defineConfig({
|
||||
testDir: './tests/browser',
|
||||
use: {
|
||||
baseURL: `http://127.0.0.1:4322${base}/`,
|
||||
baseURL: `http://127.0.0.1:${port}${base}/`,
|
||||
javaScriptEnabled: false,
|
||||
launchOptions: { executablePath: process.env.CHROME_PATH },
|
||||
},
|
||||
@@ -14,8 +15,8 @@ export default defineConfig({
|
||||
{ name: 'mobile', use: { viewport: { width: 390, height: 844 } } },
|
||||
],
|
||||
webServer: {
|
||||
command: 'npm run preview -- --host 127.0.0.1 --port 4322 --ignore-lock',
|
||||
url: `http://127.0.0.1:4322${base}/`,
|
||||
command: `npm run preview -- --host 127.0.0.1 --port ${port} --ignore-lock`,
|
||||
url: `http://127.0.0.1:${port}${base}/`,
|
||||
reuseExistingServer: false,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user