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.setHeader('Content-Disposition', 'attachment; filename=file.txt');
|
||||||
res.end(`Hello world`);
|
res.end(`Hello world`);
|
||||||
});
|
});
|
||||||
logOnCI('--- launching persistent context ---');
|
|
||||||
const { context, page } = await launchPersistent(
|
const { context, page } = await launchPersistent(
|
||||||
{
|
{
|
||||||
downloadsPath: testInfo.outputPath(''),
|
downloadsPath: testInfo.outputPath(''),
|
||||||
acceptDownloads: true,
|
acceptDownloads: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
logOnCI('--- setting content for the page ---');
|
|
||||||
await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);
|
await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);
|
||||||
logOnCI('--- launching test ---');
|
|
||||||
await test(context);
|
await test(context);
|
||||||
logOnCI('--- closing context ---');
|
|
||||||
await context.close();
|
await context.close();
|
||||||
logOnCI('--- DONE ---');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function logOnCI(...args) {
|
|
||||||
if (!process.env.CI)
|
|
||||||
return;
|
|
||||||
console.log(...args);
|
|
||||||
}
|
|
||||||
|
|
||||||
const { it, expect } = fixtures.build();
|
const { it, expect } = fixtures.build();
|
||||||
|
|
||||||
it('should keep downloadsPath folder', async ({downloadsBrowser, testInfo, server}) => {
|
it('should keep downloadsPath folder', async ({downloadsBrowser, testInfo, server}) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user