Skip to content

Commit 27ae7dc

Browse files
authored
test: tree gardening (#37107)
1 parent cd09d85 commit 27ae7dc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/library/browsertype-connect.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ test.describe('launchServer only', () => {
10471047
await expect(browser._parent.launch({ timeout: 0 })).rejects.toThrowError('Launching more browsers is not allowed.');
10481048
});
10491049

1050-
test('should work with existing browser', async ({ connect, browserType }) => {
1050+
test('should work with existing browser', async ({ connect, browserType, mode }) => {
1051+
test.skip(mode === 'driver', 'Driver mode does not support browserType.launchServer');
10511052
// can't use browser fixture because it's shared across the worker, launching a server on that would infect other tests
10521053
const browser = await browserType.launch();
10531054
const page = await browser.newPage();

tests/page/page-keyboard.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import { test as it, expect } from './pageTest';
1919
import { attachFrame } from '../config/utils';
20+
import { hostPlatform } from '../../packages/playwright-core/src/server/utils/hostPlatform';
2021

2122
it.skip(({ isAndroid }) => isAndroid);
2223

@@ -715,7 +716,10 @@ Keyup: Escape Escape STANDARD []
715716
`.trim());
716717
});
717718

718-
it('should close dialog on Escape key press in contenteditable', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36727' } }, async ({ page }) => {
719+
it('should close dialog on Escape key press in contenteditable', {
720+
annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/36727' }
721+
}, async ({ page, browserName }) => {
722+
it.skip(browserName === 'webkit' && hostPlatform.startsWith('debian11'), 'Debian 11 is frozen');
719723
await page.setContent(`
720724
<dialog>
721725
<div contenteditable>Edit Me</div>

0 commit comments

Comments
 (0)