From 93b6faeed27ee80b0b379d635dfab828c725a84e Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Mon, 16 Nov 2020 16:18:50 -0800 Subject: [PATCH] test(chromium): disable webgl2 on headful (#4450) --- test/capabilities.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/capabilities.spec.ts b/test/capabilities.spec.ts index 14aefb9ee1698..60747af2eb99c 100644 --- a/test/capabilities.spec.ts +++ b/test/capabilities.spec.ts @@ -72,16 +72,17 @@ it('should play video', (test, { browserName, platform }) => { it('should support webgl', (test, {browserName, headful}) => { test.fixme(browserName === 'firefox' && !headful); }, async ({page}) => { - const hasWebGL2 = await page.evaluate(() => { + const hasWebGL = await page.evaluate(() => { const canvas = document.createElement('canvas'); return !!canvas.getContext('webgl'); }); - expect(hasWebGL2).toBe(true); + expect(hasWebGL).toBe(true); }); it('should support webgl 2', (test, {browserName, headful}) => { test.skip(browserName === 'webkit', 'Webkit doesn\'t have webgl2 enabled yet upstream.'); test.fixme(browserName === 'firefox' && !headful); + test.fixme(browserName === 'chromium' && headful, 'chromium doesn\'t like webgl2 when running under xvfb'); }, async ({page}) => { const hasWebGL2 = await page.evaluate(() => { const canvas = document.createElement('canvas');