Skip to content

Commit

Permalink
build(slic-stack.yml) set the PLAYWRIGHT_BROWSERS_PATH env var
Browse files Browse the repository at this point in the history
By default Playwright will place browsers used in testing in the
`$HOME/.cache/ms-playwright` directory. Since the installation of the
browser dependencies and the browser must happen as the `root` user,
this would place the browsers in the `/root/.cache/ms-playwright`
directory. This update fixes the path to the one the `slic` user would
naturally use, making it possible to install the browsers as the `root`
user in a location where the `slic` user will find and be able to use
them.
  • Loading branch information
lucatume committed Aug 30, 2024
1 parent 889aa35 commit 962dfd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ services:
COLUMNS: "${COLUMNS:-80}"
# Explicitly set the env var that will define the Function Mocker cache path: it will be picked up by the config file.
FUNCTION_MOCKER_CACHE_PATH: "/cache"
# Explicitly set the path to the Playwright browsers cache to make sure it will be the same for all users.
PLAYWRIGHT_BROWSERS_PATH: "/home/slic/.cache/ms-playwright"
volumes:
# Paths are relative to the directory that contains this file, NOT the current working directory.
# Share the WordPress core installation files in the `_wordpress` directory.
Expand Down

0 comments on commit 962dfd2

Please sign in to comment.