Use headed mode for Playwright
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
0f3a057175
commit
be7d4f8b46
4 changed files with 10 additions and 4 deletions
|
@ -3,7 +3,7 @@ FROM mcr.microsoft.com/playwright:v1.49.0-jammy
|
|||
WORKDIR /work
|
||||
|
||||
# fonts-dejavu is needed for the same RTL rendering as on CI
|
||||
RUN apt-get update && apt-get -y install docker.io fonts-dejavu
|
||||
RUN apt-get update && apt-get -y install docker.io fonts-dejavu xvfb
|
||||
|
||||
COPY docker-entrypoint.sh /opt/docker-entrypoint.sh
|
||||
ENTRYPOINT ["bash", "/opt/docker-entrypoint.sh"]
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
set -e
|
||||
|
||||
npx playwright test --update-snapshots --reporter line $@
|
||||
HEADED=1 xvfb-run npx playwright test --update-snapshots --reporter line $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue