chore: add test configuration options for running tests against multiple products (#5964)

* chore: remove "Extracting..." log message

Fixes #5741.

* test: support extra Launcher options and skips

The extra Launcher options and skipping conditions enable
unit tests to be run more easily by third-parties, e.g.
browser vendors that are interested in Puppeteer support.

Extra Launcher options were previously removed as part of
switching away from the custom test harness.

* test: enable more tests for Firefox
This commit is contained in:
Maja Frydrychowicz
2020-06-12 09:55:51 -04:00
committed by Mathias Bynens
parent 5c91dfbf3f
commit 3d56a9e76f
20 changed files with 337 additions and 370 deletions

View File

@@ -23,7 +23,7 @@ const {
describe('querySelector', function () {
setupTestBrowserHooks();
setupTestPageAndContextHooks();
describeFailsFirefox('Page.$eval', function () {
describe('Page.$eval', function () {
it('should work', async () => {
const { page } = getTestState();
@@ -67,7 +67,7 @@ describe('querySelector', function () {
});
});
describeFailsFirefox('Page.$$eval', function () {
describe('Page.$$eval', function () {
it('should work', async () => {
const { page } = getTestState();
@@ -79,7 +79,7 @@ describe('querySelector', function () {
});
});
describeFailsFirefox('Page.$', function () {
describe('Page.$', function () {
it('should query existing element', async () => {
const { page } = getTestState();
@@ -96,7 +96,7 @@ describe('querySelector', function () {
});
describe('Page.$$', function () {
itFailsFirefox('should query existing elements', async () => {
it('should query existing elements', async () => {
const { page } = getTestState();
await page.setContent('<div>A</div><br/><div>B</div>');
@@ -116,7 +116,7 @@ describe('querySelector', function () {
});
});
describeFailsFirefox('Path.$x', function () {
describe('Path.$x', function () {
it('should query existing element', async () => {
const { page } = getTestState();
@@ -155,7 +155,7 @@ describe('querySelector', function () {
expect(content).toBe('A');
});
itFailsFirefox('should return null for non-existing element', async () => {
it('should return null for non-existing element', async () => {
const { page } = getTestState();
await page.setContent(
@@ -166,7 +166,7 @@ describe('querySelector', function () {
expect(second).toBe(null);
});
});
describeFailsFirefox('ElementHandle.$eval', function () {
describe('ElementHandle.$eval', function () {
it('should work', async () => {
const { page } = getTestState();
@@ -204,7 +204,7 @@ describe('querySelector', function () {
);
});
});
describeFailsFirefox('ElementHandle.$$eval', function () {
describe('ElementHandle.$$eval', function () {
it('should work', async () => {
const { page } = getTestState();
@@ -246,7 +246,7 @@ describe('querySelector', function () {
});
});
describeFailsFirefox('ElementHandle.$$', function () {
describe('ElementHandle.$$', function () {
it('should query existing elements', async () => {
const { page } = getTestState();
@@ -289,7 +289,7 @@ describe('querySelector', function () {
expect(content).toBe('A');
});
itFailsFirefox('should return null for non-existing element', async () => {
it('should return null for non-existing element', async () => {
const { page } = getTestState();
await page.setContent(