test: explicitly require expect (#3755)

This commit is contained in:
Pavel Feldman 2020-09-03 09:43:08 -07:00 committed by GitHub
parent 7ad5bd90a4
commit 8df1fe47bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
134 changed files with 136 additions and 135 deletions

6
package-lock.json generated
View File

@ -1229,9 +1229,9 @@
}
},
"@playwright/test-runner": {
"version": "0.2.9",
"resolved": "https://registry.npmjs.org/@playwright/test-runner/-/test-runner-0.2.9.tgz",
"integrity": "sha512-eFoL7P3Q7+wXMHtirvTeGAs0IG2937mnOnJSvB5Zi7BMier5oPLWcLllQKSEBIE37ZqKXkf4+huUs+Aq6eeAhA==",
"version": "0.2.10",
"resolved": "https://registry.npmjs.org/@playwright/test-runner/-/test-runner-0.2.10.tgz",
"integrity": "sha512-kOM8m+4/Crjjc01tC9avvMC/2GIMR46jpZrkNIpsBmbn3PkmLXNCyl0rT+2vqmHVaWDTAK6xxjN7JE3Xra3YSQ==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.10.4",

View File

@ -54,7 +54,7 @@
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@babel/preset-typescript": "^7.10.4",
"@playwright/test-runner": "^0.2.9",
"@playwright/test-runner": "^0.2.10",
"@types/babel__core": "^7.1.9",
"@types/debug": "^4.1.5",
"@types/extract-zip": "^1.6.2",

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
it('should work', async function({page}) {
await page.setContent(`

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should await navigation when clicking anchor', async ({page, server}) => {
const messages = [];

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should create new page', async function({browser}) {
const page1 = await browser.newPage();

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should work', async ({context, page, server}) => {
await page.goto(server.EMPTY_PAGE);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should clear cookies', async ({context, page, server}) => {
await page.goto(server.EMPTY_PAGE);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should return no cookies in pristine browser context', async ({context, page, server}) => {
expect(await context.cookies()).toEqual([]);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should fail without credentials', test => {
test.fail(options.CHROMIUM && !options.HEADLESS);

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import * as utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
describe('device', suite => {
suite.skip(options.FIREFOX);

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('expose binding should work', async ({browser}) => {
const context = await browser.newContext();

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should affect accept-language header', async ({browser, server}) => {
const context = await browser.newContext({ locale: 'fr-CH' });

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should have url', async ({browser, server}) => {
const context = await browser.newContext();

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should intercept', async ({browser, server}) => {
const context = await browser.newContext();

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({ browser }) => {
const func = () => new Date(1479579154987).toString();

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
describe('mobile viewport', suite => {
suite.skip(options.FIREFOX);

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';

View File

@ -16,7 +16,7 @@
*/
import fs from 'fs';
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('browserType.executablePath should work', test => {
test.skip(Boolean(process.env.CRPATH || process.env.FFPATH || process.env.WKPATH));

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
import utils from './utils';
import './remoteServer.fixture';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
describe('lauch server', suite => {
suite.skip(options.WIRE);

View File

@ -16,7 +16,7 @@
*/
import path from 'path';
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should reject all promises when browser is closed', async ({browserType, defaultBrowserOptions}) => {
const browser = await browserType.launch(defaultBrowserOptions);

View File

@ -15,7 +15,7 @@
*/
import url from 'url';
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('Web Assembly should work', test => {
test.fail(options.WEBKIT && WIN);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import type { ChromiumBrowser } from '..';
it('should work', async ({browser}) => {

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should check the box', async ({page}) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
describe('oopif', suite => {
suite.skip(!options.CHROMIUM);

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
it('should be missing', test => {
test.skip(options.CHROMIUM);

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it, describe, options } from '../playwright.fixtures';
import { it, expect, describe, options } from '../playwright.fixtures';
import type { ChromiumBrowserContext } from '../..';
describe('chromium', suite => {

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it, options } from '../playwright.fixtures';
import { it, expect, options } from '../playwright.fixtures';
import path from 'path';
import utils from '../utils';

View File

@ -15,7 +15,7 @@
*/
import { options } from '../playwright.fixtures';
import { it, describe, registerWorkerFixture } from '@playwright/test-runner';
import { it, expect, describe, registerWorkerFixture } from '@playwright/test-runner';
registerWorkerFixture('browser', async ({browserType, defaultBrowserOptions}, test) => {
const browser = await browserType.launch({

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it, describe, options } from '../playwright.fixtures';
import { it, expect, describe, options } from '../playwright.fixtures';
import type { ChromiumBrowserContext, ChromiumBrowser } from '../../types/types';
describe('session', suite => {

View File

@ -15,7 +15,7 @@
*/
import { options } from '../playwright.fixtures';
import { it, describe, registerFixture } from '@playwright/test-runner';
import { it, expect, describe, registerFixture } from '@playwright/test-runner';
import fs from 'fs';
import path from 'path';

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
declare const renderComponent;
declare const e;

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should avoid side effects after timeout', test => {
test.skip(options.WIRE);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should timeout waiting for display:none to be gone', async ({page, server}) => {
await page.goto(server.PREFIX + '/input/button.html');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should fail when element jumps during hit testing', test => {
test.skip(options.WIRE);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should timeout waiting for stable position', async ({page, server}) => {
await page.goto(server.PREFIX + '/input/button.html');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';
async function giveItAChanceToClick(page) {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import fs from 'fs';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import fs from 'fs';
import utils from './utils';
const { removeUserDataDir, makeUserDataDir } = utils;

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should fire', async ({page, server}) => {
page.on('dialog', dialog => {

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
*/
import { options } from './playwright.fixtures';
import { it, beforeEach } from '@playwright/test-runner';
import { it, expect, beforeEach } from '@playwright/test-runner';
import './remoteServer.fixture';
import fs from 'fs';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, registerFixture } from '@playwright/test-runner';
import { it, expect, registerFixture } from '@playwright/test-runner';
import './playwright.fixtures';
import path from 'path';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, describe, options } from '../playwright.fixtures';
import { it, expect, describe, options } from '../playwright.fixtures';
import './electron.fixture';
import path from 'path';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, describe, options } from '../playwright.fixtures';
import { it, expect, describe, options } from '../playwright.fixtures';
import './electron.fixture';
describe('electron window', suite => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should work', test => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({ page, server }) => {
await page.goto(server.PREFIX + '/input/button.html');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';
it('should have a nice preview', async ({ page, server }) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({page, server}) => {
await page.setContent('<html><body><div class="tweet"><div class="like">100</div><div class="retweets">10</div></div></body></html>');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should hover', async ({ page, server }) => {
await page.goto(server.PREFIX + '/input/scrollable.html');

View File

@ -16,7 +16,7 @@
*/
import utils from './utils';
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should work', async ({ page, server }) => {
await page.goto(server.EMPTY_PAGE);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({ page }) => {
await page.setContent(`<input type='text' />`);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should query existing element', async ({page, server}) => {
await page.goto(server.PREFIX + '/playground.html');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
import utils from './utils';
import {PNG} from 'pngjs';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({ page, server }) => {
await page.goto(server.PREFIX + '/offscreenbuttons.html');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should select textarea', async ({ page, server }) => {
await page.goto(server.PREFIX + '/input/textarea.html');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({ page }) => {
await page.setContent(`<input type='text' />`);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
async function giveItAChanceToResolve(page) {
for (let i = 0; i < 5; i++)

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';
it('should think that it is focused by default', async ({page}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work with css selector', async ({page, server}) => {
await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work with css selector', async ({page, server}) => {
await page.setContent('<section id="testAttribute">43543</section>');

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { it, options } from '../playwright.fixtures';
import { it, expect, options } from '../playwright.fixtures';
it('should pass firefox user preferences', test => {
test.skip(!options.FIREFOX);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
import './remoteServer.fixture';
import { execSync } from 'child_process';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should work', test => {
test.skip(options.FIREFOX);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';
it('should handle nested frames', async ({page, server}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({page, server, context}) => {
await context.grantPermissions(['geolocation']);

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';
const { makeUserDataDir, removeUserDataDir } = utils;

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({browser, httpsServer}) => {
let error = null;

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import { globToRegex } from '../lib/client/clientHelper';
import vm from 'vm';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({page}) => {
const aHandle = await page.evaluateHandle(() => document.body);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work with function', async ({page}) => {
const windowHandle = await page.evaluateHandle(() => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({page}) => {
const aHandle = await page.evaluateHandle(() => ({foo: 'bar'}));

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({page}) => {
const aHandle = await page.evaluateHandle(() => ({

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should work for primitives', async ({page}) => {
const numberHandle = await page.evaluateHandle(() => 2);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';
it('should type into a textarea', async ({page}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import path from 'path';
import utils from './utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should log', async ({browserType, defaultBrowserOptions}) => {
const log = [];

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, xdescribe, options } from './playwright.fixtures';
import { it, expect, xdescribe, options } from './playwright.fixtures';
function dimensions() {
const rect = document.querySelector('textarea').getBoundingClientRect();

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import utils from './utils';
it('should work for main frame navigation request', async ({page, server}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import fs from 'fs';
import path from 'path';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import path from 'path';
it('should evaluate before anything else on the page', async ({ page, server }) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
import path from 'path';
it('should throw an error if no options are provided', async ({page, server}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import path from 'path';
it('should throw an error if no options are provided', async ({page, server}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should reject all promises when page is closed', async ({context}) => {
const newPage = await context.newPage();

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';
it('should emulate type', async ({page, server}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({page, server}) => {
const windowHandle = await page.evaluateHandle(() => window);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should work', async ({ page, server }) => {
const result = await page.evaluate(() => 7 * 3);

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import util from 'util';
it('should work', async ({page, server}) => {

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, describe, options } from './playwright.fixtures';
import { it, expect, describe, options } from './playwright.fixtures';
function crash(pageImpl, browserName) {
if (browserName === 'chromium')

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('Page.Events.Request', async ({page, server}) => {
const requests = [];

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it, options } from './playwright.fixtures';
import { it, expect, options } from './playwright.fixtures';
it('should fire', async ({page, server}) => {
const [error] = await Promise.all([

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
it('should work', async ({browser}) => {
const context = await browser.newContext();

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { it } from './playwright.fixtures';
import { it, expect } from './playwright.fixtures';
import utils from './utils';
it('should fire for navigation requests', async ({page, server}) => {

Some files were not shown because too many files have changed in this diff Show More