mirror of
https://github.com/n30nex/CartoLite-Server.git
synced 2026-10-16 20:20:00 +00:00
* Compact worldwide mobile navigation and settings (0.7.3) * Trim obsolete chrome and check compact WebKit layouts * Forward browser dependency flags and finish shared style cleanup * Keep narrow labels readable and restore focus after Back * Verify responsive restoration and retain focus after view actions * Use readable theme colours for compact summary captions
43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
outputDir: './test-results',
|
|
retries: process.env.CI ? 1 : 0,
|
|
// Stop broken candidates early; a passing candidate still runs every scenario.
|
|
maxFailures: process.env.CI ? 3 : 0,
|
|
// Renderer timing is meaningful only when one Chromium instance owns the
|
|
// shared Actions CPU; concurrent software-rendered maps distort the gate.
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: process.env.CI ? [['github'], ['html', { open: 'never' }]] : 'list',
|
|
use: {
|
|
baseURL: process.env.CARTOLITE_BASE_URL ?? 'http://127.0.0.1:39476',
|
|
screenshot: 'only-on-failure',
|
|
trace: 'on-first-retry',
|
|
launchOptions: { args: ['--enable-unsafe-swiftshader'] }
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'mobile-webkit',
|
|
testMatch: /(?:labs-)?mobile-ux\.spec\.ts/,
|
|
use: { ...devices['iPhone 13'], launchOptions: { args: [] } }
|
|
},
|
|
{
|
|
name: 'desktop',
|
|
testIgnore: /tablet-portrait\.spec\.ts/,
|
|
use: { ...devices['Desktop Chrome'], viewport: { width: 1440, height: 900 } }
|
|
},
|
|
{ name: 'mobile', testIgnore: /tablet-portrait\.spec\.ts/, use: { ...devices['Pixel 7'] } },
|
|
{
|
|
name: 'mobile-tablet-portrait',
|
|
testMatch: /tablet-portrait\.spec\.ts/,
|
|
use: { ...devices['Desktop Chrome'], viewport: { width: 800, height: 1280 }, hasTouch: true }
|
|
},
|
|
{
|
|
name: 'mobile-landscape',
|
|
testIgnore: /tablet-portrait\.spec\.ts/,
|
|
use: { ...devices['Pixel 7'], viewport: { width: 844, height: 390 } }
|
|
}
|
|
]
|
|
});
|