fix test on windows
This commit is contained in:
parent
8324329e5d
commit
e33d6d2179
|
|
@ -842,6 +842,7 @@ test('should stop testrun on pressing escape', async ({ runWatchTest }) => {
|
||||||
'a.test.ts': `
|
'a.test.ts': `
|
||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
test('stalls', async () => {
|
test('stalls', async () => {
|
||||||
|
console.log('test started')
|
||||||
await new Promise(() => {});
|
await new Promise(() => {});
|
||||||
});
|
});
|
||||||
`,
|
`,
|
||||||
|
|
@ -850,8 +851,7 @@ test('should stop testrun on pressing escape', async ({ runWatchTest }) => {
|
||||||
testProcess.clearOutput();
|
testProcess.clearOutput();
|
||||||
testProcess.write('\r\n');
|
testProcess.write('\r\n');
|
||||||
|
|
||||||
await testProcess.waitForOutput('Running 1 test');
|
await testProcess.waitForOutput('test started');
|
||||||
await timers.setTimeout(500);
|
|
||||||
testProcess.write('\x1B');
|
testProcess.write('\x1B');
|
||||||
await testProcess.waitForOutput('1 interrupted');
|
await testProcess.waitForOutput('1 interrupted');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue