1 parent 140852e commit 24be604Copy full SHA for 24be604
1 file changed
playwright.config.ts
@@ -22,7 +22,22 @@ export default defineConfig({
22
},
23
projects: [
24
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
25
- { name: 'firefox', use: { ...devices['Desktop Firefox'] } },
+ {
26
+ name: 'firefox',
27
+ use: {
28
+ ...devices['Desktop Firefox'],
29
+ // Headless Firefox on Linux is software-rendering-blocklisted and
30
+ // cannot create WebGL contexts by default, which breaks the three
31
+ // example (new THREE.WebGLRenderer() throws -> no canvas). Force
32
+ // software WebGL so CI headless runs behave like real browsers.
33
+ launchOptions: {
34
+ firefoxUserPrefs: {
35
+ 'webgl.disabled': false,
36
+ 'webgl.force-enabled': true,
37
+ },
38
39
40
41
{ name: 'webkit', use: { ...devices['Desktop Safari'] } },
42
],
43
})
0 commit comments