From 0076e46e57a085d0a9fc0817178dbf219652b479 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Fri, 26 Mar 2021 08:15:04 +0800 Subject: [PATCH] chore: remove stray test logs (#5955) --- test/downloads-path.spec.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/downloads-path.spec.ts b/test/downloads-path.spec.ts index 75a893c418..a1dd672a9b 100644 --- a/test/downloads-path.spec.ts +++ b/test/downloads-path.spec.ts @@ -45,28 +45,17 @@ fixtures.persistentDownloadsContext.init(async ({ server, launchPersistent, test res.setHeader('Content-Disposition', 'attachment; filename=file.txt'); res.end(`Hello world`); }); - logOnCI('--- launching persistent context ---'); const { context, page } = await launchPersistent( { downloadsPath: testInfo.outputPath(''), acceptDownloads: true, } ); - logOnCI('--- setting content for the page ---'); await page.setContent(`download`); - logOnCI('--- launching test ---'); await test(context); - logOnCI('--- closing context ---'); await context.close(); - logOnCI('--- DONE ---'); }); -function logOnCI(...args) { - if (!process.env.CI) - return; - console.log(...args); -} - const { it, expect } = fixtures.build(); it('should keep downloadsPath folder', async ({downloadsBrowser, testInfo, server}) => {