diff --git a/test/TestExpectations.json b/test/TestExpectations.json index 7cb77a637e4..6c1545e5b9e 100644 --- a/test/TestExpectations.json +++ b/test/TestExpectations.json @@ -3368,12 +3368,6 @@ "parameters": ["cdp", "firefox"], "expectations": ["FAIL", "PASS"] }, - { - "testIdPattern": "[screenshot.spec] Screenshots Page.screenshot should work with odd clip size on Retina displays", - "platforms": ["darwin", "linux", "win32"], - "parameters": ["firefox", "webDriverBiDi"], - "expectations": ["FAIL"] - }, { "testIdPattern": "[stacktrace.spec] Stack trace should work for none error objects", "platforms": ["darwin", "linux", "win32"], diff --git a/test/src/screenshot.spec.ts b/test/src/screenshot.spec.ts index f6cd3130849..d150e68c8f9 100644 --- a/test/src/screenshot.spec.ts +++ b/test/src/screenshot.spec.ts @@ -148,6 +148,9 @@ describe('Screenshots', function () { it('should work with odd clip size on Retina displays', async () => { const {page} = await getTestState(); + // Make sure documentElement height is at least 11px. + await page.setContent(`