File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 43
43
run : |
44
44
CONTAINER_ID="$(docker run --rm -v $(pwd):/root/playwright --name playwright-docker-test -d -t playwright-python:localbuild /bin/bash)"
45
45
docker exec --workdir /root/playwright/ "${CONTAINER_ID}" pip install -r local-requirements.txt
46
+ docker exec --workdir /root/playwright/ "${CONTAINER_ID}" pip install -e .
46
47
docker exec --workdir /root/playwright/ "${CONTAINER_ID}" xvfb-run pytest -vv
Original file line number Diff line number Diff line change @@ -74,3 +74,7 @@ RUN su pwuser -c "mkdir /tmp/pw && cd /tmp/pw && \
74
74
pip install /tmp/playwright-1.0-py3-none-manylinux1_x86_64.whl && \
75
75
python -m playwright install" && \
76
76
rm -rf /tmp/pw && rm /tmp/playwright-1.0-py3-none-manylinux1_x86_64.whl
77
+
78
+ # 3. Symlink downloaded browsers for root user
79
+ RUN mkdir /root/.cache/ && \
80
+ ln -s /home/pwuser/.cache/ms-playwright/ /root/.cache/ms-playwright
You can’t perform that action at this time.
0 commit comments