Skip to content

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

test: fix pause.spec on tracing bots (#14766)

Dmitry Gozmane4c60d47b1fc
diff --git a/tests/library/inspector/pause.spec.ts b/tests/library/inspector/pause.spec.ts
index d162c6fbd5..bf7615bd30 100644
--- a/tests/library/inspector/pause.spec.ts
+++ b/tests/library/inspector/pause.spec.ts
@@ -32,7 +32,9 @@ it('should resume when closing inspector', async ({ page, recorderPageGetter, cl
it.describe('pause', () => {
it.skip(({ mode }) => mode !== 'default');
- it.afterEach(async ({ recorderPageGetter }) => {
+ it.afterEach(async ({ recorderPageGetter }, testInfo) => {
+ if (testInfo.status === 'skipped')
+ return;
try {
const recorderPage = await recorderPageGetter();
recorderPage.click('[title=Resume]').catch(() => {});