diff --git a/package-lock.json b/package-lock.json index 4bd764a5d1..ae9e388930 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 91c21fb6b1..3b5ea0734e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/accessibility.spec.ts b/test/accessibility.spec.ts index eded8623eb..662b1cea89 100644 --- a/test/accessibility.spec.ts +++ b/test/accessibility.spec.ts @@ -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(` diff --git a/test/autowaiting-basic.spec.ts b/test/autowaiting-basic.spec.ts index 20dbd9e4c3..c646de11be 100644 --- a/test/autowaiting-basic.spec.ts +++ b/test/autowaiting-basic.spec.ts @@ -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 = []; diff --git a/test/browser.spec.ts b/test/browser.spec.ts index 61379ac5e9..9875c38f8e 100644 --- a/test/browser.spec.ts +++ b/test/browser.spec.ts @@ -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(); diff --git a/test/browsercontext-add-cookies.spec.ts b/test/browsercontext-add-cookies.spec.ts index 04c6d3c3b4..23e2c377f4 100644 --- a/test/browsercontext-add-cookies.spec.ts +++ b/test/browsercontext-add-cookies.spec.ts @@ -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); diff --git a/test/browsercontext-basic.spec.ts b/test/browsercontext-basic.spec.ts index b1c879bd49..f181cb756e 100644 --- a/test/browsercontext-basic.spec.ts +++ b/test/browsercontext-basic.spec.ts @@ -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'; diff --git a/test/browsercontext-clearcookies.spec.ts b/test/browsercontext-clearcookies.spec.ts index 37c320d600..345034d946 100644 --- a/test/browsercontext-clearcookies.spec.ts +++ b/test/browsercontext-clearcookies.spec.ts @@ -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); diff --git a/test/browsercontext-cookies.spec.ts b/test/browsercontext-cookies.spec.ts index d95920a154..910edf7044 100644 --- a/test/browsercontext-cookies.spec.ts +++ b/test/browsercontext-cookies.spec.ts @@ -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([]); diff --git a/test/browsercontext-credentials.spec.ts b/test/browsercontext-credentials.spec.ts index 126a5c74bb..ebfed8c8c4 100644 --- a/test/browsercontext-credentials.spec.ts +++ b/test/browsercontext-credentials.spec.ts @@ -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); diff --git a/test/browsercontext-csp.spec.ts b/test/browsercontext-csp.spec.ts index 0cb2dd8c9a..5ca1d68a80 100644 --- a/test/browsercontext-csp.spec.ts +++ b/test/browsercontext-csp.spec.ts @@ -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'; diff --git a/test/browsercontext-device.spec.ts b/test/browsercontext-device.spec.ts index 7ce197be5a..4a56c813d4 100644 --- a/test/browsercontext-device.spec.ts +++ b/test/browsercontext-device.spec.ts @@ -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); diff --git a/test/browsercontext-expose-function.spec.ts b/test/browsercontext-expose-function.spec.ts index b193a59a8c..c52fd6e6a2 100644 --- a/test/browsercontext-expose-function.spec.ts +++ b/test/browsercontext-expose-function.spec.ts @@ -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(); diff --git a/test/browsercontext-locale.spec.ts b/test/browsercontext-locale.spec.ts index abdb0b6fd0..d29e0a7b49 100644 --- a/test/browsercontext-locale.spec.ts +++ b/test/browsercontext-locale.spec.ts @@ -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' }); diff --git a/test/browsercontext-page-event.spec.ts b/test/browsercontext-page-event.spec.ts index ddd31a44bc..21a9dceedc 100644 --- a/test/browsercontext-page-event.spec.ts +++ b/test/browsercontext-page-event.spec.ts @@ -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(); diff --git a/test/browsercontext-route.spec.ts b/test/browsercontext-route.spec.ts index 638692db0d..6c806ade42 100644 --- a/test/browsercontext-route.spec.ts +++ b/test/browsercontext-route.spec.ts @@ -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(); diff --git a/test/browsercontext-timezone-id.spec.ts b/test/browsercontext-timezone-id.spec.ts index cdb9827e25..c1f090d3f1 100644 --- a/test/browsercontext-timezone-id.spec.ts +++ b/test/browsercontext-timezone-id.spec.ts @@ -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(); diff --git a/test/browsercontext-user-agent.spec.ts b/test/browsercontext-user-agent.spec.ts index adc088edbe..8e6d531ffd 100644 --- a/test/browsercontext-user-agent.spec.ts +++ b/test/browsercontext-user-agent.spec.ts @@ -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'; diff --git a/test/browsercontext-viewport-mobile.spec.ts b/test/browsercontext-viewport-mobile.spec.ts index 7e6085f39b..410a088a78 100644 --- a/test/browsercontext-viewport-mobile.spec.ts +++ b/test/browsercontext-viewport-mobile.spec.ts @@ -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); diff --git a/test/browsercontext-viewport.spec.ts b/test/browsercontext-viewport.spec.ts index be8de82931..4bd37a5da3 100644 --- a/test/browsercontext-viewport.spec.ts +++ b/test/browsercontext-viewport.spec.ts @@ -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'; diff --git a/test/browsertype-basic.spec.ts b/test/browsertype-basic.spec.ts index 7627763b65..9b8ea1d6fc 100644 --- a/test/browsertype-basic.spec.ts +++ b/test/browsertype-basic.spec.ts @@ -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)); diff --git a/test/browsertype-connect.spec.ts b/test/browsertype-connect.spec.ts index 4c84b9d36a..b3c2446bd4 100644 --- a/test/browsertype-connect.spec.ts +++ b/test/browsertype-connect.spec.ts @@ -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'; diff --git a/test/browsertype-launch-server.spec.ts b/test/browsertype-launch-server.spec.ts index a098469cbc..f9e457768b 100644 --- a/test/browsertype-launch-server.spec.ts +++ b/test/browsertype-launch-server.spec.ts @@ -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); diff --git a/test/browsertype-launch.spec.ts b/test/browsertype-launch.spec.ts index c791b875b4..de4bcdb009 100644 --- a/test/browsertype-launch.spec.ts +++ b/test/browsertype-launch.spec.ts @@ -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); diff --git a/test/capabilities.spec.ts b/test/capabilities.spec.ts index 7b596b7933..3b479e47eb 100644 --- a/test/capabilities.spec.ts +++ b/test/capabilities.spec.ts @@ -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); diff --git a/test/channels.spec.ts b/test/channels.spec.ts index 4fe1b4012a..68eec88191 100644 --- a/test/channels.spec.ts +++ b/test/channels.spec.ts @@ -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}) => { diff --git a/test/check.spec.ts b/test/check.spec.ts index 95e7505b2c..7b360ebedf 100644 --- a/test/check.spec.ts +++ b/test/check.spec.ts @@ -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(``); diff --git a/test/chromium-css-coverage.spec.ts b/test/chromium-css-coverage.spec.ts index 2f9d8f9489..a2234fea55 100644 --- a/test/chromium-css-coverage.spec.ts +++ b/test/chromium-css-coverage.spec.ts @@ -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); diff --git a/test/chromium-js-coverage.spec.ts b/test/chromium-js-coverage.spec.ts index 2971bfa6b0..07bfc63a7c 100644 --- a/test/chromium-js-coverage.spec.ts +++ b/test/chromium-js-coverage.spec.ts @@ -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); diff --git a/test/chromium/chromium.spec.ts b/test/chromium/chromium.spec.ts index 50ffdbf298..8b809bf963 100644 --- a/test/chromium/chromium.spec.ts +++ b/test/chromium/chromium.spec.ts @@ -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 => { diff --git a/test/chromium/launcher.spec.ts b/test/chromium/launcher.spec.ts index 487239c880..d126a1111d 100644 --- a/test/chromium/launcher.spec.ts +++ b/test/chromium/launcher.spec.ts @@ -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'; diff --git a/test/chromium/oopif.spec.ts b/test/chromium/oopif.spec.ts index 7dbcb2abbc..48311d1e45 100644 --- a/test/chromium/oopif.spec.ts +++ b/test/chromium/oopif.spec.ts @@ -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({ diff --git a/test/chromium/session.spec.ts b/test/chromium/session.spec.ts index ea11a942f1..7f79605254 100644 --- a/test/chromium/session.spec.ts +++ b/test/chromium/session.spec.ts @@ -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 => { diff --git a/test/chromium/tracing.spec.ts b/test/chromium/tracing.spec.ts index ea004baeee..f22d00a5b2 100644 --- a/test/chromium/tracing.spec.ts +++ b/test/chromium/tracing.spec.ts @@ -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'; diff --git a/test/click-react.spec.ts b/test/click-react.spec.ts index 077c74a019..50620500e5 100644 --- a/test/click-react.spec.ts +++ b/test/click-react.spec.ts @@ -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; diff --git a/test/click-timeout-1.spec.ts b/test/click-timeout-1.spec.ts index a44ef96c59..649a5efc19 100644 --- a/test/click-timeout-1.spec.ts +++ b/test/click-timeout-1.spec.ts @@ -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); diff --git a/test/click-timeout-2.spec.ts b/test/click-timeout-2.spec.ts index ac8cf6d8ab..a9331a7e39 100644 --- a/test/click-timeout-2.spec.ts +++ b/test/click-timeout-2.spec.ts @@ -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'); diff --git a/test/click-timeout-3.spec.ts b/test/click-timeout-3.spec.ts index d8f1e0b46f..86ecbd4bd6 100644 --- a/test/click-timeout-3.spec.ts +++ b/test/click-timeout-3.spec.ts @@ -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); diff --git a/test/click-timeout-4.spec.ts b/test/click-timeout-4.spec.ts index b6447a08a8..338f16abda 100644 --- a/test/click-timeout-4.spec.ts +++ b/test/click-timeout-4.spec.ts @@ -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'); diff --git a/test/click.spec.ts b/test/click.spec.ts index 8f28fa62e2..20b4ba5e2f 100644 --- a/test/click.spec.ts +++ b/test/click.spec.ts @@ -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) { diff --git a/test/defaultbrowsercontext-1.spec.ts b/test/defaultbrowsercontext-1.spec.ts index c93b0447ec..1db6aeece6 100644 --- a/test/defaultbrowsercontext-1.spec.ts +++ b/test/defaultbrowsercontext-1.spec.ts @@ -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'; diff --git a/test/defaultbrowsercontext-2.spec.ts b/test/defaultbrowsercontext-2.spec.ts index b239bf66a6..26bcc9a768 100644 --- a/test/defaultbrowsercontext-2.spec.ts +++ b/test/defaultbrowsercontext-2.spec.ts @@ -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; diff --git a/test/dialog.spec.ts b/test/dialog.spec.ts index eb1014a5fc..5afa77030b 100644 --- a/test/dialog.spec.ts +++ b/test/dialog.spec.ts @@ -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 => { diff --git a/test/dispatchevent.spec.ts b/test/dispatchevent.spec.ts index a8228be847..dfa2b0bc1f 100644 --- a/test/dispatchevent.spec.ts +++ b/test/dispatchevent.spec.ts @@ -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'; diff --git a/test/download.spec.ts b/test/download.spec.ts index 3f3af9b068..23ebd0df61 100644 --- a/test/download.spec.ts +++ b/test/download.spec.ts @@ -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'; diff --git a/test/downloads-path.spec.ts b/test/downloads-path.spec.ts index 39f1d7b008..058bc75827 100644 --- a/test/downloads-path.spec.ts +++ b/test/downloads-path.spec.ts @@ -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'; diff --git a/test/electron/electron-app.spec.ts b/test/electron/electron-app.spec.ts index 82cd6db683..1472338a2b 100644 --- a/test/electron/electron-app.spec.ts +++ b/test/electron/electron-app.spec.ts @@ -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'; diff --git a/test/electron/electron-window.spec.ts b/test/electron/electron-window.spec.ts index 09fdcf9474..9605533d5d 100644 --- a/test/electron/electron-window.spec.ts +++ b/test/electron/electron-window.spec.ts @@ -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 => { diff --git a/test/elementhandle-bounding-box.spec.ts b/test/elementhandle-bounding-box.spec.ts index 97d48c9e9c..dbfe8a3a7e 100644 --- a/test/elementhandle-bounding-box.spec.ts +++ b/test/elementhandle-bounding-box.spec.ts @@ -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 => { diff --git a/test/elementhandle-click.spec.ts b/test/elementhandle-click.spec.ts index 698571fe93..9379641257 100644 --- a/test/elementhandle-click.spec.ts +++ b/test/elementhandle-click.spec.ts @@ -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'); diff --git a/test/elementhandle-content-frame.spec.ts b/test/elementhandle-content-frame.spec.ts index 2bf6165d4b..e2d427d54c 100644 --- a/test/elementhandle-content-frame.spec.ts +++ b/test/elementhandle-content-frame.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import utils from './utils'; diff --git a/test/elementhandle-convenience.spec.ts b/test/elementhandle-convenience.spec.ts index bdadea33fe..bd18ea17b0 100644 --- a/test/elementhandle-convenience.spec.ts +++ b/test/elementhandle-convenience.spec.ts @@ -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 }) => { diff --git a/test/elementhandle-eval-on-selector.spec.ts b/test/elementhandle-eval-on-selector.spec.ts index 08bfb31549..2e9ba77787 100644 --- a/test/elementhandle-eval-on-selector.spec.ts +++ b/test/elementhandle-eval-on-selector.spec.ts @@ -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('
100
10
'); diff --git a/test/elementhandle-misc.spec.ts b/test/elementhandle-misc.spec.ts index 9c2e8186c7..79ec109432 100644 --- a/test/elementhandle-misc.spec.ts +++ b/test/elementhandle-misc.spec.ts @@ -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'); diff --git a/test/elementhandle-owner-frame.spec.ts b/test/elementhandle-owner-frame.spec.ts index 1e27251d4e..5b67b21b81 100644 --- a/test/elementhandle-owner-frame.spec.ts +++ b/test/elementhandle-owner-frame.spec.ts @@ -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); diff --git a/test/elementhandle-press.spec.ts b/test/elementhandle-press.spec.ts index e6ffad3ab3..b10228f043 100644 --- a/test/elementhandle-press.spec.ts +++ b/test/elementhandle-press.spec.ts @@ -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(``); diff --git a/test/elementhandle-query-selector.spec.ts b/test/elementhandle-query-selector.spec.ts index 184b635360..563f5e3a57 100644 --- a/test/elementhandle-query-selector.spec.ts +++ b/test/elementhandle-query-selector.spec.ts @@ -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'); diff --git a/test/elementhandle-screenshot.spec.ts b/test/elementhandle-screenshot.spec.ts index 6ad0a8e27f..994e95b985 100644 --- a/test/elementhandle-screenshot.spec.ts +++ b/test/elementhandle-screenshot.spec.ts @@ -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'; diff --git a/test/elementhandle-scroll-into-view.spec.ts b/test/elementhandle-scroll-into-view.spec.ts index b190d6b59f..1d43bf97e2 100644 --- a/test/elementhandle-scroll-into-view.spec.ts +++ b/test/elementhandle-scroll-into-view.spec.ts @@ -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'); diff --git a/test/elementhandle-select-text.spec.ts b/test/elementhandle-select-text.spec.ts index 39adfad304..26b557ad50 100644 --- a/test/elementhandle-select-text.spec.ts +++ b/test/elementhandle-select-text.spec.ts @@ -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'); diff --git a/test/elementhandle-type.spec.ts b/test/elementhandle-type.spec.ts index 3c91cf78e7..02fae2f1d0 100644 --- a/test/elementhandle-type.spec.ts +++ b/test/elementhandle-type.spec.ts @@ -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(``); diff --git a/test/elementhandle-wait-for-element-state.spec.ts b/test/elementhandle-wait-for-element-state.spec.ts index b76e4d6b53..2015700fe2 100644 --- a/test/elementhandle-wait-for-element-state.spec.ts +++ b/test/elementhandle-wait-for-element-state.spec.ts @@ -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++) diff --git a/test/emulation-focus.spec.ts b/test/emulation-focus.spec.ts index 2d515da3cc..f05bb47234 100644 --- a/test/emulation-focus.spec.ts +++ b/test/emulation-focus.spec.ts @@ -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}) => { diff --git a/test/eval-on-selector-all.spec.ts b/test/eval-on-selector-all.spec.ts index 3df47f2cd0..486365765f 100644 --- a/test/eval-on-selector-all.spec.ts +++ b/test/eval-on-selector-all.spec.ts @@ -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('
hello
beautiful
world!
'); diff --git a/test/eval-on-selector.spec.ts b/test/eval-on-selector.spec.ts index aa15f5bf97..43715f9941 100644 --- a/test/eval-on-selector.spec.ts +++ b/test/eval-on-selector.spec.ts @@ -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('
43543
'); diff --git a/test/firefox/launcher.spec.ts b/test/firefox/launcher.spec.ts index 3d11a2bff0..55779006fc 100644 --- a/test/firefox/launcher.spec.ts +++ b/test/firefox/launcher.spec.ts @@ -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); diff --git a/test/fixtures.spec.ts b/test/fixtures.spec.ts index f6e5c85538..f9ae252fde 100644 --- a/test/fixtures.spec.ts +++ b/test/fixtures.spec.ts @@ -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'; diff --git a/test/focus.spec.ts b/test/focus.spec.ts index 70751a7597..d0b7d21c98 100644 --- a/test/focus.spec.ts +++ b/test/focus.spec.ts @@ -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); diff --git a/test/frame-evaluate.spec.ts b/test/frame-evaluate.spec.ts index f40f359123..92fe50235c 100644 --- a/test/frame-evaluate.spec.ts +++ b/test/frame-evaluate.spec.ts @@ -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'; diff --git a/test/frame-frame-element.spec.ts b/test/frame-frame-element.spec.ts index 9459cb437d..a237ebdc09 100644 --- a/test/frame-frame-element.spec.ts +++ b/test/frame-frame-element.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import utils from './utils'; diff --git a/test/frame-goto.spec.ts b/test/frame-goto.spec.ts index 0e0ad9e45d..d48a9b271d 100644 --- a/test/frame-goto.spec.ts +++ b/test/frame-goto.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import utils from './utils'; diff --git a/test/frame-hierarchy.spec.ts b/test/frame-hierarchy.spec.ts index 3142bd9622..27066445a6 100644 --- a/test/frame-hierarchy.spec.ts +++ b/test/frame-hierarchy.spec.ts @@ -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}) => { diff --git a/test/geolocation.spec.ts b/test/geolocation.spec.ts index a7f949c658..4b0905485e 100644 --- a/test/geolocation.spec.ts +++ b/test/geolocation.spec.ts @@ -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']); diff --git a/test/headful.spec.ts b/test/headful.spec.ts index bd4ba9fc27..54fec49a1b 100644 --- a/test/headful.spec.ts +++ b/test/headful.spec.ts @@ -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; diff --git a/test/ignorehttpserrors.spec.ts b/test/ignorehttpserrors.spec.ts index 1e1711f013..6c99b0a4d9 100644 --- a/test/ignorehttpserrors.spec.ts +++ b/test/ignorehttpserrors.spec.ts @@ -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; diff --git a/test/interception.spec.ts b/test/interception.spec.ts index 2cdf98c79d..f8a61a3093 100644 --- a/test/interception.spec.ts +++ b/test/interception.spec.ts @@ -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'; diff --git a/test/jshandle-as-element.spec.ts b/test/jshandle-as-element.spec.ts index 4bf6479e40..557ae2dffd 100644 --- a/test/jshandle-as-element.spec.ts +++ b/test/jshandle-as-element.spec.ts @@ -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); diff --git a/test/jshandle-evaluate.spec.ts b/test/jshandle-evaluate.spec.ts index 3209ff6588..0678d8382c 100644 --- a/test/jshandle-evaluate.spec.ts +++ b/test/jshandle-evaluate.spec.ts @@ -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(() => { diff --git a/test/jshandle-json-value.spec.ts b/test/jshandle-json-value.spec.ts index dd28996b5a..38e62a17a2 100644 --- a/test/jshandle-json-value.spec.ts +++ b/test/jshandle-json-value.spec.ts @@ -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'})); diff --git a/test/jshandle-properties.spec.ts b/test/jshandle-properties.spec.ts index 5557ea5330..dfb6230398 100644 --- a/test/jshandle-properties.spec.ts +++ b/test/jshandle-properties.spec.ts @@ -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(() => ({ diff --git a/test/jshandle-to-string.spec.ts b/test/jshandle-to-string.spec.ts index 2ab5e0249c..0d7e3fb31d 100644 --- a/test/jshandle-to-string.spec.ts +++ b/test/jshandle-to-string.spec.ts @@ -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); diff --git a/test/keyboard.spec.ts b/test/keyboard.spec.ts index 554f727492..9b4c7f84ab 100644 --- a/test/keyboard.spec.ts +++ b/test/keyboard.spec.ts @@ -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}) => { diff --git a/test/launcher.spec.ts b/test/launcher.spec.ts index 56b778bd53..a640781bcb 100644 --- a/test/launcher.spec.ts +++ b/test/launcher.spec.ts @@ -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'; diff --git a/test/logger.spec.ts b/test/logger.spec.ts index 0142db8e4a..84fb1712a7 100644 --- a/test/logger.spec.ts +++ b/test/logger.spec.ts @@ -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 = []; diff --git a/test/mouse.spec.ts b/test/mouse.spec.ts index 7b45193da7..e0c481ad89 100644 --- a/test/mouse.spec.ts +++ b/test/mouse.spec.ts @@ -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(); diff --git a/test/network-request.spec.ts b/test/network-request.spec.ts index 6f248d5cf4..e180877af3 100644 --- a/test/network-request.spec.ts +++ b/test/network-request.spec.ts @@ -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}) => { diff --git a/test/network-response.spec.ts b/test/network-response.spec.ts index 9a6625d8dc..e03cd4ef07 100644 --- a/test/network-response.spec.ts +++ b/test/network-response.spec.ts @@ -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'; diff --git a/test/page-add-init-script.spec.ts b/test/page-add-init-script.spec.ts index 57463b3523..c49791cd64 100644 --- a/test/page-add-init-script.spec.ts +++ b/test/page-add-init-script.spec.ts @@ -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 }) => { diff --git a/test/page-add-script-tag.spec.ts b/test/page-add-script-tag.spec.ts index 0ed829daea..6faf5f8bc9 100644 --- a/test/page-add-script-tag.spec.ts +++ b/test/page-add-script-tag.spec.ts @@ -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}) => { diff --git a/test/page-add-style-tag.spec.ts b/test/page-add-style-tag.spec.ts index f79b3d96fb..7887cf9c60 100644 --- a/test/page-add-style-tag.spec.ts +++ b/test/page-add-style-tag.spec.ts @@ -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}) => { diff --git a/test/page-basic.spec.ts b/test/page-basic.spec.ts index b3bbe038b9..d8dc567048 100644 --- a/test/page-basic.spec.ts +++ b/test/page-basic.spec.ts @@ -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(); diff --git a/test/page-emulate-media.spec.ts b/test/page-emulate-media.spec.ts index 9c169463da..bf1a19a24f 100644 --- a/test/page-emulate-media.spec.ts +++ b/test/page-emulate-media.spec.ts @@ -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}) => { diff --git a/test/page-evaluate-handle.spec.ts b/test/page-evaluate-handle.spec.ts index 30a18f2695..0f6f81315d 100644 --- a/test/page-evaluate-handle.spec.ts +++ b/test/page-evaluate-handle.spec.ts @@ -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); diff --git a/test/page-evaluate.spec.ts b/test/page-evaluate.spec.ts index 12fbe72755..bf19bf476a 100644 --- a/test/page-evaluate.spec.ts +++ b/test/page-evaluate.spec.ts @@ -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); diff --git a/test/page-event-console.spec.ts b/test/page-event-console.spec.ts index 392c3915f6..d0238e7a3a 100644 --- a/test/page-event-console.spec.ts +++ b/test/page-event-console.spec.ts @@ -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}) => { diff --git a/test/page-event-crash.spec.ts b/test/page-event-crash.spec.ts index 9a67cc0a55..adbd8e1b74 100644 --- a/test/page-event-crash.spec.ts +++ b/test/page-event-crash.spec.ts @@ -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') diff --git a/test/page-event-network.spec.ts b/test/page-event-network.spec.ts index 36adb2ce25..bd698c3584 100644 --- a/test/page-event-network.spec.ts +++ b/test/page-event-network.spec.ts @@ -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 = []; diff --git a/test/page-event-pageerror.spec.ts b/test/page-event-pageerror.spec.ts index 59c6ca5988..8b8350b3fb 100644 --- a/test/page-event-pageerror.spec.ts +++ b/test/page-event-pageerror.spec.ts @@ -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([ diff --git a/test/page-event-popup.spec.ts b/test/page-event-popup.spec.ts index d4119cf0ef..6d45d2b800 100644 --- a/test/page-event-popup.spec.ts +++ b/test/page-event-popup.spec.ts @@ -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(); diff --git a/test/page-event-request.spec.ts b/test/page-event-request.spec.ts index e7cfa68846..08fed55224 100644 --- a/test/page-event-request.spec.ts +++ b/test/page-event-request.spec.ts @@ -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}) => { diff --git a/test/page-expose-function.spec.ts b/test/page-expose-function.spec.ts index 5659b7ef4f..9e08cd61b9 100644 --- a/test/page-expose-function.spec.ts +++ b/test/page-expose-function.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; it('exposeBinding should work', async ({browser}) => { const context = await browser.newContext(); diff --git a/test/page-fill.spec.ts b/test/page-fill.spec.ts index f3ad5e585a..2e26c670a2 100644 --- a/test/page-fill.spec.ts +++ b/test/page-fill.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; async function giveItAChanceToFill(page) { for (let i = 0; i < 5; i++) diff --git a/test/page-goto.spec.ts b/test/page-goto.spec.ts index 31ddc0c973..f54440b9da 100644 --- a/test/page-goto.spec.ts +++ b/test/page-goto.spec.ts @@ -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'; import path from 'path'; diff --git a/test/page-history.spec.ts b/test/page-history.spec.ts index 500e2a5b12..9eeb720867 100644 --- a/test/page-history.spec.ts +++ b/test/page-history.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; import url from 'url'; it('page.goBack should work', async ({page, server}) => { diff --git a/test/page-network-idle.spec.ts b/test/page-network-idle.spec.ts index d868a69fa2..a54bd56949 100644 --- a/test/page-network-idle.spec.ts +++ b/test/page-network-idle.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import type { Frame, Page } from '..'; import { TestServer } from '../utils/testserver'; diff --git a/test/page-route.spec.ts b/test/page-route.spec.ts index 79146a72a1..2c7bdcd573 100644 --- a/test/page-route.spec.ts +++ b/test/page-route.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; it('should intercept', async ({page, server}) => { let intercepted = false; diff --git a/test/page-screenshot.spec.ts b/test/page-screenshot.spec.ts index 745155642d..63e0f0d75f 100644 --- a/test/page-screenshot.spec.ts +++ b/test/page-screenshot.spec.ts @@ -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 path from 'path'; import fs from 'fs'; diff --git a/test/page-select-option.spec.ts b/test/page-select-option.spec.ts index aaa27a97fc..6692ef257b 100644 --- a/test/page-select-option.spec.ts +++ b/test/page-select-option.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; it('should select single option', async ({page, server}) => { await page.goto(server.PREFIX + '/input/select.html'); diff --git a/test/page-set-content.spec.ts b/test/page-set-content.spec.ts index 947c855abe..2e107e86b3 100644 --- a/test/page-set-content.spec.ts +++ b/test/page-set-content.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; const expectedOutput = '
hello
'; diff --git a/test/page-set-extra-http-headers.spec.ts b/test/page-set-extra-http-headers.spec.ts index b3fe3e262d..a0e36d4c4b 100644 --- a/test/page-set-extra-http-headers.spec.ts +++ b/test/page-set-extra-http-headers.spec.ts @@ -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.setExtraHTTPHeaders({ diff --git a/test/page-set-input-files.spec.ts b/test/page-set-input-files.spec.ts index 5ca8e54e84..a01a8a65fb 100644 --- a/test/page-set-input-files.spec.ts +++ b/test/page-set-input-files.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import path from 'path'; import fs from 'fs'; diff --git a/test/page-wait-for-load-state.spec.ts b/test/page-wait-for-load-state.spec.ts index 1946632e2d..a9ae4ef458 100644 --- a/test/page-wait-for-load-state.spec.ts +++ b/test/page-wait-for-load-state.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; import type { Route } from '..'; it('should pick up ongoing navigation', async ({page, server}) => { diff --git a/test/page-wait-for-navigation.spec.ts b/test/page-wait-for-navigation.spec.ts index a6787a8eb2..1f9eca9abf 100644 --- a/test/page-wait-for-navigation.spec.ts +++ b/test/page-wait-for-navigation.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import utils from './utils'; import type { Frame } from '..'; diff --git a/test/page-wait-for-request.spec.ts b/test/page-wait-for-request.spec.ts index 1803a0ce5b..b7d5916c11 100644 --- a/test/page-wait-for-request.spec.ts +++ b/test/page-wait-for-request.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import vm from 'vm'; diff --git a/test/page-wait-for-response.spec.ts b/test/page-wait-for-response.spec.ts index a5c91a41a1..e209d71618 100644 --- a/test/page-wait-for-response.spec.ts +++ b/test/page-wait-for-response.spec.ts @@ -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.EMPTY_PAGE); diff --git a/test/pdf.spec.ts b/test/pdf.spec.ts index d28d404668..e8d1e3dcc4 100644 --- a/test/pdf.spec.ts +++ b/test/pdf.spec.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; import fs from 'fs'; import path from 'path'; diff --git a/test/permissions.spec.ts b/test/permissions.spec.ts index 1c71e3bb9b..1280877a8b 100644 --- a/test/permissions.spec.ts +++ b/test/permissions.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it, describe, options } from './playwright.fixtures'; +import { it, expect, describe, options } from './playwright.fixtures'; function getPermission(page, name) { return page.evaluate(name => navigator.permissions.query({name}).then(result => result.state), name); diff --git a/test/playwright.fixtures.ts b/test/playwright.fixtures.ts index 47020e89d8..5159bbc1d6 100644 --- a/test/playwright.fixtures.ts +++ b/test/playwright.fixtures.ts @@ -25,7 +25,7 @@ import { Transport } from '../lib/protocol/transport'; import { installCoverageHooks } from './coverage'; import { parameters, registerFixture, registerWorkerFixture } from '@playwright/test-runner'; import { mkdtempAsync, removeFolderAsync } from './utils'; -export { it, fit, xit, describe, fdescribe, xdescribe } from '@playwright/test-runner'; +export { it, fit, xit, describe, fdescribe, xdescribe, expect } from '@playwright/test-runner'; export const options = { CHROMIUM: parameters.browserName === 'chromium', diff --git a/test/popup.spec.ts b/test/popup.spec.ts index 636f005a12..7873caef10 100644 --- a/test/popup.spec.ts +++ b/test/popup.spec.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; it('should inherit user agent from browser context', async function({browser, server}) { const context = await browser.newContext({ diff --git a/test/proxy.spec.ts b/test/proxy.spec.ts index adcde04dc6..bc8b012cb0 100644 --- a/test/proxy.spec.ts +++ b/test/proxy.spec.ts @@ -15,7 +15,7 @@ */ import { parameters } from '@playwright/test-runner'; -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; import socks from 'socksv5'; diff --git a/test/queryselector.spec.ts b/test/queryselector.spec.ts index e57c72e502..53d47c83a9 100644 --- a/test/queryselector.spec.ts +++ b/test/queryselector.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; it('should throw for non-string selector', async ({page}) => { const error = await page.$(null).catch(e => e); diff --git a/test/request-continue.spec.ts b/test/request-continue.spec.ts index 0f94605ceb..22bc23714f 100644 --- a/test/request-continue.spec.ts +++ b/test/request-continue.spec.ts @@ -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.route('**/*', route => route.continue()); diff --git a/test/request-fulfill.spec.ts b/test/request-fulfill.spec.ts index 35e1aac807..81a9031bd6 100644 --- a/test/request-fulfill.spec.ts +++ b/test/request-fulfill.spec.ts @@ -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 path from 'path'; diff --git a/test/screencast.spec.ts b/test/screencast.spec.ts index ab8ce4768e..3216d0e55a 100644 --- a/test/screencast.spec.ts +++ b/test/screencast.spec.ts @@ -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 type { Page } from '..'; import fs from 'fs'; diff --git a/test/selectors-css.spec.ts b/test/selectors-css.spec.ts index ec3e363373..7ef156c922 100644 --- a/test/selectors-css.spec.ts +++ b/test/selectors-css.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; it('should work for open shadow roots', async ({page, server}) => { await page.goto(server.PREFIX + '/deep-shadow.html'); diff --git a/test/selectors-misc.spec.ts b/test/selectors-misc.spec.ts index 01729d1d08..dc85816c13 100644 --- a/test/selectors-misc.spec.ts +++ b/test/selectors-misc.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; it('should work for open shadow roots', async ({page, server}) => { await page.goto(server.PREFIX + '/deep-shadow.html'); diff --git a/test/selectors-register.spec.ts b/test/selectors-register.spec.ts index a8f7b2fc6b..2062d6d5ba 100644 --- a/test/selectors-register.spec.ts +++ b/test/selectors-register.spec.ts @@ -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'; diff --git a/test/selectors-text.spec.ts b/test/selectors-text.spec.ts index 73bd07fe3a..13f4c12950 100644 --- a/test/selectors-text.spec.ts +++ b/test/selectors-text.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it, options } from './playwright.fixtures'; +import { it, expect, options } from './playwright.fixtures'; it('query', async ({page}) => { await page.setContent(`
yo
ya
\nye
`); diff --git a/test/slowmo.spec.ts b/test/slowmo.spec.ts index 6ea4be82f6..ceaeb92551 100644 --- a/test/slowmo.spec.ts +++ b/test/slowmo.spec.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { it, describe, options } from './playwright.fixtures'; +import { it, expect, describe, options } from './playwright.fixtures'; import { attachFrame } from './utils'; async function checkSlowMo(toImpl, page, task) { diff --git a/test/utils.js b/test/utils.js index 3a1fea07b3..6ff2371469 100644 --- a/test/utils.js +++ b/test/utils.js @@ -20,6 +20,7 @@ const path = require('path'); const util = require('util'); const os = require('os'); const removeFolder = require('rimraf'); +const { expect } = require('@playwright/test-runner'); const {FlakinessDashboard} = require('../utils/flakiness-dashboard'); const PROJECT_ROOT = fs.existsSync(path.join(__dirname, '..', 'package.json')) ? path.join(__dirname, '..') : path.join(__dirname, '..', '..'); diff --git a/test/wait-for-function.spec.ts b/test/wait-for-function.spec.ts index 383f286bbb..a0c0952ec5 100644 --- a/test/wait-for-function.spec.ts +++ b/test/wait-for-function.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; it('should timeout', async ({page}) => { const startTime = Date.now(); diff --git a/test/wait-for-selector-1.spec.ts b/test/wait-for-selector-1.spec.ts index ecd0621b20..d8486cecfc 100644 --- a/test/wait-for-selector-1.spec.ts +++ b/test/wait-for-selector-1.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import utils from './utils'; async function giveItTimeToLog(frame) { diff --git a/test/wait-for-selector-2.spec.ts b/test/wait-for-selector-2.spec.ts index 7698bbe429..950abc4d4f 100644 --- a/test/wait-for-selector-2.spec.ts +++ b/test/wait-for-selector-2.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import utils from './utils'; const addElement = tag => document.body.appendChild(document.createElement(tag)); diff --git a/test/workers.spec.ts b/test/workers.spec.ts index dc72bef465..857b561795 100644 --- a/test/workers.spec.ts +++ b/test/workers.spec.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { it } from './playwright.fixtures'; +import { it, expect } from './playwright.fixtures'; import type { ConsoleMessage } from '..'; it('Page.workers', async function({page, server}) {