From e4c60d47b1fc1c95ffee837bfe68f2ab69269175 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 9 Jun 2022 13:34:01 -0700 Subject: [PATCH] test: fix pause.spec on tracing bots (#14766) --- tests/library/inspector/pause.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(() => {});