Reorganize scripts and E2E tests

This commit is contained in:
Sascha Ißbrücker
2023-05-21 14:32:24 +02:00
parent 417dce785a
commit 84f13dd792
15 changed files with 107 additions and 14 deletions

14
scripts/test-e2e.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Make sure Chromium is installed
playwright install chromium
# Test server loads assets from static folder, so make sure files there are up-to-date
rm -rf static
npm run build
python manage.py compilescss
python manage.py collectstatic --ignore=*.scss
python manage.py compilescss --delete-files
# Run E2E tests
python manage.py test bookmarks.e2e --pattern="e2e_test_*.py"