openpencil/tests/e2e/app
Danila Poyarkov cff091bc6a
test: resolve repository files without climbing directories (#946)
* test: resolve repository files without climbing directories

Twelve tests and helpers reached shared fixtures, package assets, and workers with ../.. paths from import.meta, which the import rule does not see. They now go through repoPath and testPath, a workspaceRoot() that finds the root by its lockfile, the core package's own root, or the #core alias through import.meta.resolve. The root finder derives its folder from import.meta.url, so Playwright specs running under Node can use the helpers too. open-pencil/no-deep-parent-relative-paths rejects climbing two levels in new URL(…, import.meta.url) and in path calls that start from import.meta.

* fix(lint): catch Windows separators and wrapped import.meta paths, and stop at template expressions

The path rule missed '..\..' and a base such as dirname(fileURLToPath(import.meta.url)), and read `../${folder}` followed by '..' as climbing two levels.
2026-10-07 12:35:39 +00:00
..
closed-documents.spec.ts test: resolve repository files without climbing directories (#946) 2026-10-07 12:35:39 +00:00
command-palette.spec.ts feat(app): jump between pages from the command palette (#801) 2026-10-01 20:26:35 +04:00
document-drop.spec.ts feat: open documents dropped onto the window (#906) 2026-10-05 14:24:43 +00:00
home-view.spec.ts refactor(ui): compose shared editor controls (#670) 2026-09-10 12:09:06 +03:00
menu.spec.ts fix: refresh Undo and Redo command availability 2026-09-14 00:25:36 +03:00
recent-files.spec.ts refactor(ui): compose shared editor controls (#670) 2026-09-10 12:09:06 +03:00
support-gate.spec.ts fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
tab-close.spec.ts refactor(ui): compose shared editor controls (#670) 2026-09-10 12:09:06 +03:00
tab-preparation.spec.ts test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
unsaved-changes.spec.ts fix: protect unsaved documents and defer credential access (#713) 2026-09-17 15:25:15 +03:00
webmcp.spec.ts feat(settings): unify preferences and integration editors 2026-09-15 16:34:05 +03:00