test: playwright smoke (chromium + firefox) for real scroll and dots fallback
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user