mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
parent
320b9d5dbb
commit
bf0fab4927
@ -47,8 +47,10 @@ class UIMode {
|
|||||||
for (const project of config.projects)
|
for (const project of config.projects)
|
||||||
project.deps = [];
|
project.deps = [];
|
||||||
|
|
||||||
for (const p of config.projects)
|
for (const p of config.projects) {
|
||||||
p.project.retries = 0;
|
p.project.retries = 0;
|
||||||
|
p.project.repeatEach = 1;
|
||||||
|
}
|
||||||
config.configCLIOverrides.use = config.configCLIOverrides.use || {};
|
config.configCLIOverrides.use = config.configCLIOverrides.use || {};
|
||||||
config.configCLIOverrides.use.trace = { mode: 'on', sources: false };
|
config.configCLIOverrides.use.trace = { mode: 'on', sources: false };
|
||||||
|
|
||||||
|
@ -330,3 +330,32 @@ test('should show test.fail as passing', async ({ runUITest }) => {
|
|||||||
|
|
||||||
await expect(page.getByTestId('status-line')).toHaveText('1/1 passed (100%)');
|
await expect(page.getByTestId('status-line')).toHaveText('1/1 passed (100%)');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('should ignore repeatEach', async ({ runUITest }) => {
|
||||||
|
const { page } = await runUITest({
|
||||||
|
'playwright.config.ts': `
|
||||||
|
import { defineConfig } from '@playwright/test';
|
||||||
|
export default defineConfig({
|
||||||
|
repeatEach: 3,
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
'a.test.ts': `
|
||||||
|
import { test, expect } from '@playwright/test';
|
||||||
|
test('should pass', () => {
|
||||||
|
expect(1).toBe(1);
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
await expect.poll(dumpTestTree(page), { timeout: 15000 }).toContain(`
|
||||||
|
▼ ◯ a.test.ts
|
||||||
|
`);
|
||||||
|
|
||||||
|
await page.getByTitle('Run all').click();
|
||||||
|
|
||||||
|
await expect.poll(dumpTestTree(page), { timeout: 15000 }).toBe(`
|
||||||
|
▼ ✅ a.test.ts
|
||||||
|
✅ should pass
|
||||||
|
`);
|
||||||
|
|
||||||
|
await expect(page.getByTestId('status-line')).toHaveText('1/1 passed (100%)');
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user