mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test: disable flaky installation test on macos-13 (#12478)
This commit is contained in:
parent
d83d9a6ae2
commit
97a4951d52
@ -26,7 +26,8 @@ try {
|
|||||||
);
|
);
|
||||||
const worker = await workerTarget.worker();
|
const worker = await workerTarget.worker();
|
||||||
|
|
||||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
// See https://crbug.com/341213355
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 2000));
|
||||||
|
|
||||||
const result = await worker.evaluate(async url => {
|
const result = await worker.evaluate(async url => {
|
||||||
return await globalThis.testConnect(url);
|
return await globalThis.testConnect(url);
|
||||||
|
@ -70,28 +70,35 @@ describe('`puppeteer`', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('runs in the extension', async function () {
|
// Flaky on macos-13.
|
||||||
const examplePath = join(this.sandbox, 'puppeteer-in-extension');
|
(platform() === 'darwin' ? it.skip : it)(
|
||||||
fs.cpSync(join(EXAMPLES_DIR, 'puppeteer-in-extension'), examplePath, {
|
'runs in the extension',
|
||||||
recursive: true,
|
async function () {
|
||||||
});
|
const examplePath = join(this.sandbox, 'puppeteer-in-extension');
|
||||||
spawnSync('npm', ['ci'], {
|
fs.cpSync(join(EXAMPLES_DIR, 'puppeteer-in-extension'), examplePath, {
|
||||||
cwd: examplePath,
|
recursive: true,
|
||||||
shell: true,
|
});
|
||||||
});
|
spawnSync('npm', ['ci'], {
|
||||||
spawnSync('npm', ['run', 'build'], {
|
cwd: examplePath,
|
||||||
cwd: examplePath,
|
shell: true,
|
||||||
shell: true,
|
});
|
||||||
});
|
spawnSync('npm', ['run', 'build'], {
|
||||||
|
cwd: examplePath,
|
||||||
|
shell: true,
|
||||||
|
});
|
||||||
|
|
||||||
const server = await TestServer.create(examplePath);
|
const server = await TestServer.create(examplePath);
|
||||||
try {
|
try {
|
||||||
const script = await readAsset('puppeteer', 'puppeteer-in-extension.js');
|
const script = await readAsset(
|
||||||
await this.runScript(script, 'mjs', [String(server.port)]);
|
'puppeteer',
|
||||||
} finally {
|
'puppeteer-in-extension.js'
|
||||||
await server.stop();
|
);
|
||||||
|
await this.runScript(script, 'mjs', [String(server.port)]);
|
||||||
|
} finally {
|
||||||
|
await server.stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Skipping this test on Windows as windows runners are much slower.
|
// Skipping this test on Windows as windows runners are much slower.
|
||||||
|
Loading…
Reference in New Issue
Block a user