chore(firefox): kill original puppeteer-firefox tests (#4047)

When we started working on Puppeteer-Firefox, we forked original
Puppeteer testsuite.

This patch concludes the effort to merge testsuites back together.

Fixes #3889
This commit is contained in:
Andrey Lushnikov
2019-02-21 13:10:15 -08:00
committed by GitHub
parent fbf91cca98
commit ed984ac479
102 changed files with 10 additions and 4275 deletions

View File

@@ -27,6 +27,14 @@ module.exports.addTests = function({testRunner, expect, Errors, CHROME}) {
await page.goto(server.EMPTY_PAGE);
expect(page.url()).toBe(server.EMPTY_PAGE);
});
it('should work with anchor navigation', async({page, server}) => {
await page.goto(server.EMPTY_PAGE);
expect(page.url()).toBe(server.EMPTY_PAGE);
await page.goto(server.EMPTY_PAGE + '#foo');
expect(page.url()).toBe(server.EMPTY_PAGE + '#foo');
await page.goto(server.EMPTY_PAGE + '#bar');
expect(page.url()).toBe(server.EMPTY_PAGE + '#bar');
});
it('should work with redirects', async({page, server}) => {
server.setRedirect('/redirect/1.html', '/redirect/2.html');
server.setRedirect('/redirect/2.html', '/empty.html');