Files
orca/tests/component-fixtures/playwright.config.ts
T
Jinjing 30ffe6e297 Improve agent picker updates and menu pointer handoffs (#36874)
* Optimize agent picker menu updates and pointer highlighting

- Keep catalog hydration re-renders scoped to open menu content
- Preserve unchanged picker rows and fix menu highlights after scrolling or submenu flicks

* Improve menu pointer handoffs and picker update performance

- Preserve focus during scrolling and portaled setup interactions
- Open rested submenu targets without an extra pointer move
- Avoid unnecessary picker row updates while keeping translations current

* Fix inventory subscriber assertions to identify agents

* Defer launch picker inventory updates to passive effects

* Add menu pointer highlight component fixtures and tests

* Fix checkbox menu item test accessibility state

* Reset retained menu pointer tracking on reopen

* Keep menu highlights in sync while scrolling submenus

* Remove synthetic submenu pointer handoff

- Preserve Radix hover and keyboard navigation without triggering clicks
- Keep wheel-scroll highlight synchronization responsive to current cursor position

* Preserve submenu pointer grace after wheel scrolling

* Preserve prevented menu pointer movement during scrolling

* Fix menu pointer tracking observer cleanup

* Recognize component fixture specs as Playwright tests
2026-11-01 01:39:06 -07:00

26 lines
791 B
TypeScript

import { defineConfig } from '@playwright/test'
// ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test --config tests/component-fixtures/playwright.config.ts
export default defineConfig({
testDir: '.',
testMatch: '*.spec.ts',
fullyParallel: true,
use: {
baseURL: 'http://127.0.0.1:5197',
headless: true,
viewport: { width: 1000, height: 720 },
reducedMotion: 'reduce',
launchOptions: process.env.ORCA_FIXTURES_BROWSER
? { executablePath: process.env.ORCA_FIXTURES_BROWSER }
: undefined,
trace: 'retain-on-failure'
},
webServer: {
command:
'pnpm exec vite --config config/vite.fixtures.config.ts --host 127.0.0.1 --port 5197 --strictPort',
cwd: '../..',
url: 'http://127.0.0.1:5197/fixtures.html',
timeout: 120_000
}
})