Skip to content

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

chore: remove stray test logs (#5955)

Pavel Feldman0076e46e57a0
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(`<a href="${server.PREFIX}/download">download</a>`);
- 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}) => {