remove unneeded test addition

This commit is contained in:
Simon Knott 2024-08-23 16:23:38 +02:00
parent 068379aaa2
commit d89e8912f6
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -347,30 +347,3 @@ test('should queue watches', async ({ runUITest, writeFiles, createLatch }) => {
await expect(page.getByTestId('status-line')).toHaveText('3/3 passed (100%)');
});
test('should not watch output', async ({ runUITest }) => {
const { page } = await runUITest({
'a.test.ts': `
import { test, expect } from '@playwright/test';
test('passes', ({}, testInfo) => {
require('fs').writeFileSync(testInfo.outputPath('output.txt'), 'DATA');
});
`,
});
await expect.poll(dumpTestTree(page)).toBe(`
a.test.ts
passes
`);
const commands: string[] = [];
await page.exposeBinding('__logForTest', (source, arg) => {
commands.push(arg.method);
});
await page.getByTitle('Run all').click();
await expect(page.getByTestId('status-line')).toHaveText('1/1 passed (100%)');
expect(commands).toContain('runTests');
expect(commands).not.toContain('listTests');
});