mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove stray test logs (#5955)
This commit is contained in:
parent
5872d0407a
commit
0076e46e57
@ -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}) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user