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

This commit is contained in:
Dmitry Gozman 2022-06-09 13:34:01 -07:00 committed by GitHub
parent 833d332fa3
commit e4c60d47b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(() => {});