Files
ObsiGate/tests/e2e/playwright.config.js
T
bruno 38569c2f9f
CI / lint (push) Failing after 9s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 16s
test: I2 + I3 — 46 tests d'intégration + suite E2E Playwright
I2 (test_pane_manager.py): 46 nouveaux tests
  - Module structure: 10 tests (exports, methods, factory, max panes)
  - Data flow: 8 tests (drag format, tree format, JSON, migration, localStorage)
  - DOM flow: 7 tests (grid, IDs, lazy render, collapse, empty pane, transfer)
  - Keyboard: 6 tests (all shortcuts + preventDefault counts)
  - Context menu: 4 tests (split, move-to, close actions)
  - CSS: 7 tests (grid, container, resize, drop zone, buttons, responsive)
  - HTML/App: 5 tests (wrapper, tab-bar, modules, imports)
  - Palette: 3 tests (commands, reset, category)
  - Editor lock: 2 tests
  - Dashboard: 1 test (TabManager vs openFile)

I3 (tests/e2e/): suite Playwright complète
  - package.json, playwright.config.js, split-view.spec.js
  - 12 test specs: basic ops, tab drag, tree drag, persistence, regression, keyboard nav
  - Exécution: cd tests/e2e && npm install && npx playwright test

Total: 353 tests passent (307 + 46)
2026-07-28 10:27:15 -04:00

23 lines
479 B
JavaScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: '.',
timeout: 30000,
expect: { timeout: 10000 },
fullyParallel: false,
retries: 1,
workers: 1,
reporter: 'list',
use: {
baseURL: process.env.OBSIGATE_URL || 'http://192.168.30.101:2020',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});