mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix tests for chromium-based browser channels (#11974)
This commit is contained in:
parent
1e1a6acaf7
commit
439c8e9c40
@ -274,7 +274,7 @@ it('should provide a Response with a file URL', async ({ page, asset, isAndroid,
|
||||
|
||||
const fileurl = url.pathToFileURL(asset('frames/two-frames.html')).href;
|
||||
const response = await page.goto(fileurl);
|
||||
if (isElectron || (browserName === 'chromium' && browserMajorVersion >= 100) || (browserName === 'webkit' && isWindows))
|
||||
if (isElectron || (browserName === 'chromium' && browserMajorVersion >= 99) || (browserName === 'webkit' && isWindows))
|
||||
expect(response.status()).toBe(200);
|
||||
else
|
||||
expect(response.status()).toBe(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user