Skip to content

Commit

Permalink
Do local e2e tests in Xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brody committed Sep 17, 2024
1 parent 9c44062 commit b7e86d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

cd react

Xvfb :10 -ac &
export DISPLAY=:10
fluxbox >/dev/null 2>&1 &

for browser in "chrome --no-first-run '--window-size=1400,800' --hide-scrollbars --disable-gpu"; do
for test_file in test/*_test.ts ; do
npx testcafe -e "$browser" $test_file -s thumbnails=false
Expand All @@ -11,3 +15,6 @@ done
cd ..

python tests/check_images.py

kill $(ps aux | grep 'Xvfb' | awk '{print $2}')
kill $(ps aux | grep 'fluxbox' | awk '{print $2}')

0 comments on commit b7e86d0

Please sign in to comment.