diff --git a/test/TestExpectations.json b/test/TestExpectations.json index 055622bb..03aff4b2 100644 --- a/test/TestExpectations.json +++ b/test/TestExpectations.json @@ -2423,12 +2423,6 @@ "parameters": ["firefox", "webDriverBiDi"], "expectations": ["SKIP"] }, - { - "testIdPattern": "[locator.spec] Locator Locator.prototype.expect should resolve as soon as the predicate matches", - "platforms": ["darwin", "linux", "win32"], - "parameters": ["chrome", "webDriverBiDi"], - "expectations": ["TIMEOUT"] - }, { "testIdPattern": "[mouse.spec] Mouse should reset properly", "platforms": ["darwin", "linux", "win32"], diff --git a/test/src/locator.spec.ts b/test/src/locator.spec.ts index 3a34ef3e..a938128d 100644 --- a/test/src/locator.spec.ts +++ b/test/src/locator.spec.ts @@ -540,41 +540,16 @@ describe('Locator', function () { }); describe('Locator.prototype.expect', () => { - it('should not resolve if the predicate does not match', async () => { - const clock = sinon.useFakeTimers({ - shouldClearNativeTimers: true, - }); - try { - const {page} = await getTestState(); - page.setDefaultTimeout(5000); - await page.setContent(`