From d6adfee7c03d398e56cdb5d1023f3ec7e85402db Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 13 Oct 2023 14:02:55 -0700 Subject: [PATCH] =?UTF-8?q?test:=20update=20expectation=20on=20windows=20f?= =?UTF-8?q?or=20"should=20reject=20if=20launched=20br=E2=80=A6=20(#27603)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …owser fails immediately" The test has been failing on Windows since f212fd1a8318345147c7357ced36db21acd477a0 --- tests/library/browsertype-launch.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/library/browsertype-launch.spec.ts b/tests/library/browsertype-launch.spec.ts index 21d17d0573..d36e9d8d8d 100644 --- a/tests/library/browsertype-launch.spec.ts +++ b/tests/library/browsertype-launch.spec.ts @@ -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 }) => {