test: update expectation on windows for "should reject if launched br… (#27603)
…owser fails immediately"
The test has been failing on Windows since
f212fd1a83
This commit is contained in:
parent
6400e5c564
commit
d6adfee7c0
|
|
@ -59,12 +59,12 @@ it('should throw if page argument is passed', async ({ browserType, browserName
|
|||
expect(waitError.message).toContain('can not specify page');
|
||||
});
|
||||
|
||||
it('should reject if launched browser fails immediately', async ({ mode, browserType, asset }) => {
|
||||
it('should reject if launched browser fails immediately', async ({ mode, browserType, asset, isWindows }) => {
|
||||
it.skip(mode.startsWith('service'));
|
||||
|
||||
let waitError = null;
|
||||
await browserType.launch({ executablePath: asset('dummy_bad_browser_executable.js') }).catch(e => waitError = e);
|
||||
expect(waitError.message).toContain('Browser logs:');
|
||||
expect(waitError.message).toContain(isWindows ? 'browserType.launch: spawn UNKNOWN' : 'Browser logs:');
|
||||
});
|
||||
|
||||
it('should reject if executable path is invalid', async ({ browserType, mode }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue