Skip to content

Commit

Permalink
test: add failing headful test (#2013)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Apr 28, 2020
1 parent e534568 commit 2b5ff83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/headful.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ describe('Headful', function() {
await browserContext.close();
await removeUserDataDir(userDataDir);
});
it.fail(CHROMIUM)('should click background tab', async({browserType, defaultBrowserOptions, server}) => {
const browser = await browserType.launch({...defaultBrowserOptions, headless: false });
const page = await browser.newPage();
await page.setContent(`<button>Hello</button><a target=_blank href="${server.EMPTY_PAGE}">empty.html</a>`);
await page.click('a');
await page.click('button');
await browser.close();
});
});

0 comments on commit 2b5ff83

Please sign in to comment.