Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

tet: unflake some test runner tests (#23240)

Dmitry Gozman2858ca95d837
diff --git a/tests/playwright-test/hooks.spec.ts b/tests/playwright-test/hooks.spec.ts
index 3a61cfbf85..2481a824c9 100644
--- a/tests/playwright-test/hooks.spec.ts
+++ b/tests/playwright-test/hooks.spec.ts
@@ -673,7 +673,7 @@ test('unhandled rejection during beforeAll should be reported and prevent more t
Promise.resolve().then(() => {
throw new Error('Oh my');
});
- await new Promise(f => setTimeout(f, 100));
+ await new Promise(f => setTimeout(f, 1000));
});
test.afterAll(() => {
console.log('\\n%%afterAll');
diff --git a/tests/playwright-test/playwright-test-fixtures.ts b/tests/playwright-test/playwright-test-fixtures.ts
index 1b4172e0fa..86da01b10f 100644
--- a/tests/playwright-test/playwright-test-fixtures.ts
+++ b/tests/playwright-test/playwright-test-fixtures.ts
@@ -296,6 +296,8 @@ export const test = base
},
runTSC: async ({ childProcess }, use, testInfo) => {
+ testInfo.slow();
+
await use(async files => {
const baseDir = await writeFiles(testInfo, { 'tsconfig.json': JSON.stringify(TSCONFIG), ...files }, true);
const tsc = childProcess({
diff --git a/tests/playwright-test/types-2.spec.ts b/tests/playwright-test/types-2.spec.ts
index 1273afa110..25fa0f1e0c 100644
--- a/tests/playwright-test/types-2.spec.ts
+++ b/tests/playwright-test/types-2.spec.ts
@@ -16,8 +16,6 @@
import { test, expect } from './playwright-test-fixtures';
-test.slow();
-
test('basics should work', async ({ runTSC }) => {
const result = await runTSC({
'a.spec.ts': `
diff --git a/tests/playwright-test/types.spec.ts b/tests/playwright-test/types.spec.ts
index ec7dc9d37c..893596ca09 100644
--- a/tests/playwright-test/types.spec.ts
+++ b/tests/playwright-test/types.spec.ts
@@ -16,8 +16,6 @@
import { test, expect } from './playwright-test-fixtures';
-test.slow();
-
test('should check types of fixtures', async ({ runTSC }) => {
const result = await runTSC({
'helper.ts': `