The touch test runs in Chromium on the desktop and in WebKit as an iPad
(810x1080 and 1080x810): the acceptance of F4 as a script ("zwei
Rechnernetze" built anew by finger, set up and pinged across), two fingers
zoom the surface and never the page (M7, without a frame), every action
without a right click, every target at least 44 px. Real gestures: CDP in
Chromium, WebKit's own Input.dispatchTouchEvent through Playwright's
in-process connection (Playwright pinned to 1.62.1). A dragged finger holds
still before it is lifted, or Chromium takes it for a fling.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
751 B
TypeScript
18 lines
751 B
TypeScript
// The browser tests: what needs a real browser — the core in Chromium (M9),
|
|
// the room in a real web worker, the editor's gestures (plan §7.2). The
|
|
// touch test (touch.spec.ts) also runs on an iPad, upright and on its side,
|
|
// in WebKit (F4.9, M7).
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: 'packages',
|
|
testMatch: '**/browser/*.spec.ts',
|
|
workers: 1,
|
|
reporter: 'list',
|
|
projects: [
|
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
|
|
{ name: 'ipad-portrait', use: { ...devices['iPad (gen 7)'] }, testMatch: '**/browser/touch.spec.ts' },
|
|
{ name: 'ipad-landscape', use: { ...devices['iPad (gen 7) landscape'] }, testMatch: '**/browser/touch.spec.ts' },
|
|
],
|
|
});
|