chore: remove stray test logs (#5955)

This commit is contained in:
Pavel Feldman 2021-03-26 08:15:04 +08:00 committed by GitHub
parent 5872d0407a
commit 0076e46e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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