Files
openclaw/extensions
Quratulain-bilal bc2d53dacd test(browser): cover tilde edge cases for executablePath (#71439)
* test(browser): cover tilde edge cases for executablePath

Adds coverage for cases the original tilde-expansion fix in 95a2c9b
intentionally supports but does not assert:

- bare "~" expands to the home directory
- Windows-style "~\AppData\..." expands to $HOME on Windows
- a stray "~" mid-path (e.g. /opt/~chromium/chrome) is preserved verbatim,
  guarding the regex anchor against future regressions

No production code changes; tests only.

* test(browser): skip Windows-style ~\ tilde test on POSIX

path.resolve treats backslashes as literal characters on POSIX, so
"~\AppData\..." cannot resolve to "$HOME/AppData/..." on Linux/macOS.
Gate that case to win32 to keep the assertion meaningful.
2026-04-25 09:01:57 +01:00
..
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 15:12:37 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 16:34:48 +01:00
2026-04-20 13:16:40 +01:00
2026-04-24 16:07:53 +01:00