Skip to content

Commit 4a00e5c

Browse files
authored
test: remove flaky test for binding on error pages (#2952)
I wasn't able to make it consistently pass...
1 parent 2d5c032 commit 4a00e5c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/browsercontext.spec.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,6 @@ describe('BrowserContext', function() {
146146
expect(popup.mainFrame()).toBeTruthy();
147147
}
148148
});
149-
it('should not call binding on errored pages', async({browser, server}) => {
150-
const context = await browser.newContext();
151-
let gotBinding = 0;
152-
await context.exposeFunction('add', (a, b) => {
153-
gotBinding++;
154-
return a + b;
155-
});
156-
const page = await context.newPage();
157-
server.setRoute('/empty.html', (req, res) => {
158-
res.end(`<script>window.add(2, 3)</script><a href="${server.EMPTY_PAGE}" target="_blank">Click me</a>`);
159-
});
160-
await page.goto(server.EMPTY_PAGE);
161-
await page.click('"Click me"');
162-
await context.close();
163-
expect(gotBinding).toBe(1);
164-
})
165149
});
166150

167151
describe('BrowserContext({userAgent})', function() {

0 commit comments

Comments
 (0)