test: playwright smoke (chromium + firefox) for real scroll and dots fallback

This commit is contained in:
Ilia Mashkov
2026-07-01 08:14:39 +03:00
parent 834a7ac371
commit 9fe3172ef4
3 changed files with 70 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, devices } from '@playwright/test';
const isCI = !!process.env.CI;
export default defineConfig({
testDir: 'e2e',
testMatch: /.*\.test\.ts$/,
forbidOnly: isCI,
retries: isCI ? 2 : 0,
reporter: isCI ? [['html', { open: 'never' }], ['github']] : [['list']],
use: { baseURL: 'http://localhost:5173' },
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
],
webServer: {
command: 'yarn dlx http-server . -p 5173 -s',
port: 5173,
reuseExistingServer: !isCI,
},
});