Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: tree gardening (#36979)

Max Schmittbb06ae0a4ccf
diff --git a/tests/page/locator-query.spec.ts b/tests/page/locator-query.spec.ts
index d453d9c65c..6503d93afe 100644
--- a/tests/page/locator-query.spec.ts
+++ b/tests/page/locator-query.spec.ts
@@ -273,7 +273,8 @@ it('alias methods coverage', async ({ page }) => {
await expect(page.mainFrame().locator('button')).toHaveCount(1);
});
-it('count() should not throw during navigation', async ({ page }) => {
+it('count() should not throw during navigation', async ({ page, mode }) => {
+ it.skip(mode !== 'default', 'No test hooks');
await page.setContent(`<div>A</div>`);
const __testHookBeforeQuery = () => page.goto('data:text/html,<div>A</div><div>B</div>');
// @ts-expect-error
diff --git a/tests/playwright-test/test-step.spec.ts b/tests/playwright-test/test-step.spec.ts
index 355e68ee64..0842944768 100644
--- a/tests/playwright-test/test-step.spec.ts
+++ b/tests/playwright-test/test-step.spec.ts
@@ -1462,7 +1462,7 @@ pw:api | Close context
test('reading network request / response should not be listed as step', {
annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/33558' }
-}, async ({ runInlineTest, server, page }) => {
+}, async ({ runInlineTest, server }) => {
const result = await runInlineTest({
'reporter.ts': stepIndentReporter,
'playwright.config.ts': `module.exports = { reporter: './reporter' };`,