Skip to content

Commit

Permalink
test(webkit): test cross-process nav w/ _blank target (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored May 2, 2020
1 parent 0e44589 commit f2fcb2b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/navigation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,23 @@ describe('Page.reload', function() {
});
});

describe('Click navigation', function() {
it('should work with _blank target', async({page, server}) => {
server.setRoute('/empty.html', (req, res) => {
res.end(`<a href="${server.EMPTY_PAGE}" target="_blank">Click me</a>`);
});
await page.goto(server.EMPTY_PAGE);
await page.click('"Click me"');
});
it.fail(WEBKIT)('should work with cross-process _blank target', async({page, server}) => {
server.setRoute('/empty.html', (req, res) => {
res.end(`<a href="${server.CROSS_PROCESS_PREFIX}/empty.html" target="_blank">Click me</a>`);
});
await page.goto(server.EMPTY_PAGE);
await page.click('"Click me"');
});
});

function expectSSLError(errorMessage) {
if (CHROMIUM) {
expect(errorMessage).toContain('net::ERR_CERT_AUTHORITY_INVALID');
Expand Down

0 comments on commit f2fcb2b

Please sign in to comment.