mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove flaky-by-design test (#12434)
This commit is contained in:
parent
33655ff168
commit
d14ecec612
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { test, expect, stripAnsi } from './playwright-test-fixtures';
|
import { test, expect } from './playwright-test-fixtures';
|
||||||
import { ZipFileSystem } from '../../packages/playwright-core/lib/utils/vfs';
|
import { ZipFileSystem } from '../../packages/playwright-core/lib/utils/vfs';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
@ -131,28 +131,6 @@ test('should not throw with trace: on-first-retry and two retries in the same wo
|
|||||||
expect(result.flaky).toBe(6);
|
expect(result.flaky).toBe(6);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should not throw with trace and timeouts', async ({ runInlineTest }, testInfo) => {
|
|
||||||
const result = await runInlineTest({
|
|
||||||
'playwright.config.ts': `
|
|
||||||
module.exports = { timeout: 2000, repeatEach: 10, use: { trace: 'on' } };
|
|
||||||
`,
|
|
||||||
'a.spec.ts': `
|
|
||||||
const { test } = pwt;
|
|
||||||
test('launches browser', async ({ page }) => {
|
|
||||||
});
|
|
||||||
test('sometimes times out', async ({ page }) => {
|
|
||||||
test.setTimeout(1000);
|
|
||||||
await page.setContent('<div>Hello</div>');
|
|
||||||
await new Promise(f => setTimeout(f, 800 + Math.round(Math.random() * 200)));
|
|
||||||
});
|
|
||||||
`,
|
|
||||||
}, { workers: 2 });
|
|
||||||
|
|
||||||
expect(result.exitCode).toBe(1);
|
|
||||||
expect(stripAnsi(result.output)).not.toContain('tracing.stopChunk:');
|
|
||||||
expect(stripAnsi(result.output)).not.toContain('tracing.stop:');
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should save sources when requested', async ({ runInlineTest }, testInfo) => {
|
test('should save sources when requested', async ({ runInlineTest }, testInfo) => {
|
||||||
const result = await runInlineTest({
|
const result = await runInlineTest({
|
||||||
'playwright.config.ts': `
|
'playwright.config.ts': `
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user