Refactor visual tests

We use built in devices for testing instead of our own custom ones.
Split up desktop and mobile visual tests for better separation.
This commit is contained in:
Rūdolfs Ošiņš
2024-01-05 17:45:20 +00:00
parent e194de4218
commit 5684b8ef42
13 changed files with 180 additions and 223 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ jobs:
- name: Install Playwright browsers
if: steps.playwright-dep-cache.outputs.cache-hit != 'true'
run: npx playwright install chromium
run: npx playwright install chromium webkit --with-deps
- name: Install Radicle binaries
run: |
@@ -57,9 +57,9 @@ jobs:
- name: Run Playwright tests
run: |
if [ ${{ github.ref }} = "refs/heads/master" ]; then
npm run test:e2e -- --project visual --update-snapshots || true;
npm run test:e2e -- --project visual-desktop visual-mobile --update-snapshots || true;
else
npm run test:e2e -- --project visual;
npm run test:e2e -- --project visual-desktop visual-mobile;
fi
# We don't care about logs in visual snapshot tests, only the images.