You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/playwright: resolve shim target through shell-script shims on macOS
Two playwright tests assert ``loaded_abspath.resolve()`` lands inside
``playwright_root/cache``. On Linux the shim is a plain symlink so
``.resolve()`` follows naturally. On macOS chromium ships inside a
``.app`` bundle and the shim is a shell script (``exec '<path>'``)
instead -- ``.resolve()`` on a regular file just returns the file
itself, failing the ``in updated_target.parents`` assertion.
Add ``_resolve_shim_target()`` that falls back to parsing the ``exec``
line from the shell script when ``.resolve()`` doesn't follow. Also
update ``copy_seeded_playwright_root()`` to rewrite the shell script's
hardcoded absolute path from the seeded root to the per-test copy
(previously it only repointed symlinks), so the pre-``load()`` shim
state is consistent across both shim flavors.
0 commit comments