mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
tet: unflake some test runner tests (#23240)
- `unhandled rejection during beforeAll should be reported and prevent more tests` had timeout of 100ms that is too short on busy system; - `runTSC` is always slow, so mark as such.
This commit is contained in:
parent
5926c67703
commit
2858ca95d8
@ -673,7 +673,7 @@ test('unhandled rejection during beforeAll should be reported and prevent more t
|
|||||||
Promise.resolve().then(() => {
|
Promise.resolve().then(() => {
|
||||||
throw new Error('Oh my');
|
throw new Error('Oh my');
|
||||||
});
|
});
|
||||||
await new Promise(f => setTimeout(f, 100));
|
await new Promise(f => setTimeout(f, 1000));
|
||||||
});
|
});
|
||||||
test.afterAll(() => {
|
test.afterAll(() => {
|
||||||
console.log('\\n%%afterAll');
|
console.log('\\n%%afterAll');
|
||||||
|
@ -296,6 +296,8 @@ export const test = base
|
|||||||
},
|
},
|
||||||
|
|
||||||
runTSC: async ({ childProcess }, use, testInfo) => {
|
runTSC: async ({ childProcess }, use, testInfo) => {
|
||||||
|
testInfo.slow();
|
||||||
|
|
||||||
await use(async files => {
|
await use(async files => {
|
||||||
const baseDir = await writeFiles(testInfo, { 'tsconfig.json': JSON.stringify(TSCONFIG), ...files }, true);
|
const baseDir = await writeFiles(testInfo, { 'tsconfig.json': JSON.stringify(TSCONFIG), ...files }, true);
|
||||||
const tsc = childProcess({
|
const tsc = childProcess({
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
import { test, expect } from './playwright-test-fixtures';
|
import { test, expect } from './playwright-test-fixtures';
|
||||||
|
|
||||||
test.slow();
|
|
||||||
|
|
||||||
test('basics should work', async ({ runTSC }) => {
|
test('basics should work', async ({ runTSC }) => {
|
||||||
const result = await runTSC({
|
const result = await runTSC({
|
||||||
'a.spec.ts': `
|
'a.spec.ts': `
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
import { test, expect } from './playwright-test-fixtures';
|
import { test, expect } from './playwright-test-fixtures';
|
||||||
|
|
||||||
test.slow();
|
|
||||||
|
|
||||||
test('should check types of fixtures', async ({ runTSC }) => {
|
test('should check types of fixtures', async ({ runTSC }) => {
|
||||||
const result = await runTSC({
|
const result = await runTSC({
|
||||||
'helper.ts': `
|
'helper.ts': `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user