diff --git a/.github/workflows/VISUAL_REGRESSION.yml b/.github/workflows/VISUAL_REGRESSION.yml
index aec7b46cd..8160290ee 100644
--- a/.github/workflows/VISUAL_REGRESSION.yml
+++ b/.github/workflows/VISUAL_REGRESSION.yml
@@ -24,7 +24,18 @@ jobs:
- name: Start server
run: npm run start:visual-preview
- name: Run Playwright tests
+ if: github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/master'
run: npm run test:visual
+ - name: Overwrite Playwright snapshots
+ if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
+ run: |
+ npm run test:visual -- --update-snapshots
+ git config user.name '${{ secrets.BPMN_IO_USERNAME }}'
+ git config user.email '${{ secrets.BPMN_IO_EMAIL }}'
+ git add -A
+ git commit -m "chore(CI): updated snapshots [skip ci]" || echo "No changes to commit"
+ git push
+
- uses: actions/upload-artifact@v3
if: always()
with:
diff --git a/packages/form-js-playground/src/components/PlaygroundRoot.js b/packages/form-js-playground/src/components/PlaygroundRoot.js
index cce59eaca..235c09f3f 100644
--- a/packages/form-js-playground/src/components/PlaygroundRoot.js
+++ b/packages/form-js-playground/src/components/PlaygroundRoot.js
@@ -255,7 +255,7 @@ export function PlaygroundRoot(props) {
-