Skip to content

🎥 Make videos programmatically with React

Add example e2e tests to CI browser-tests job

Jonny Burger1c4185abed53
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index ffd37328ba..0849f7aaa7 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -78,9 +78,11 @@ jobs:
- name: Test Webcodecs
run: |
bun run testwebcodecs
+ - name: Install E2E deps
+ run: cd packages/example && bunx playwright install --with-deps
- name: Test Example E2E
run: |
- cd packages/example && bun run test:e2e
+ bun run teste2e
webrenderer-tests:
runs-on: macos-latest
name: Web renderer tests
diff --git a/package.json b/package.json
index 83fbd70aa9..4c77b2c7fe 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"build-docs": "TURBO_TELEMETRY_DISABLED=1 turbo run build-docs --no-update-notifier",
"testssr": "turbo run testssr --no-update-notifier",
"testtemplates": "turbo run testtemplates --no-update-notifier",
+ "teste2e": "turbo run teste2e --no-update-notifier",
"testwebcodecs": "turbo run testwebcodecs --no-update-notifier",
"testwebrenderer": "turbo run testwebrenderer --concurrency=1 --no-update-notifier",
"testlambda": "turbo run testlambda --concurrency=1 --no-update-notifier",
diff --git a/packages/example/package.json b/packages/example/package.json
index f812078316..ef533b4768 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -22,6 +22,7 @@
"lint": "eslint src",
"test": "tsc && bun test src --timeout 60000",
"test:e2e": "playwright test",
+ "teste2e": "playwright test",
"render": "remotion render react-svg",
"bundle": "remotion bundle",
"render-js": "remotion render src/entry.jsx framer",
diff --git a/turbo.json b/turbo.json
index e0a6951f15..a8ffbce090 100644
--- a/turbo.json
+++ b/turbo.json
@@ -24,6 +24,9 @@
"testwebcodecs": {
"dependsOn": ["@remotion/webcodecs#make"]
},
+ "teste2e": {
+ "dependsOn": ["^make"]
+ },
"testwebrenderer": {
"dependsOn": ["@remotion/web-renderer#make"]
},