mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Skip webgl tests on linux/firefox
This commit is contained in:
@@ -7,6 +7,7 @@ import test from '@playwright/test';
|
||||
import { strictEqual } from 'assert';
|
||||
import { injectSharedRendererTests } from '../../../out-test/playwright/SharedRendererTests';
|
||||
import { ITestContext, createTestContext, openTerminal } from '../../../out-test/playwright/TestUtils';
|
||||
import { platform } from 'os';
|
||||
|
||||
let ctx: ITestContext;
|
||||
const ctxWrapper: { value: ITestContext } = { value: undefined } as any;
|
||||
@@ -22,6 +23,12 @@ test.beforeAll(async ({ browser }) => {
|
||||
test.afterAll(async () => await ctx.page.close());
|
||||
|
||||
test.describe('WebGL Renderer Integration Tests', async () => {
|
||||
// HACK: webgl2 is often not supported in headless firefox on Linux
|
||||
// https://github.com/microsoft/playwright/issues/11566
|
||||
if (platform() === 'linux') {
|
||||
test.skip(({ browserName }) => browserName === 'firefox');
|
||||
}
|
||||
|
||||
test('dispose removes renderer canvases', async function(): Promise<void> {
|
||||
strictEqual(await ctx.page.evaluate(`document.querySelectorAll('.xterm canvas').length`), 2);
|
||||
await ctx.page.evaluate(`addon.dispose()`);
|
||||
|
||||
@@ -16,7 +16,7 @@ test.beforeAll(async ({ browser }) => {
|
||||
});
|
||||
test.afterAll(async () => await ctx.page.close());
|
||||
|
||||
test.describe('DOM Renderer Integration Tests', async () => {
|
||||
test.describe('DOM Renderer Integration Tests', () => {
|
||||
injectSharedRendererTests(ctxWrapper);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user