test: explicitly require expect (#3755)
This commit is contained in:
parent
7ad5bd90a4
commit
8df1fe47bc
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -1229,9 +1229,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@playwright/test-runner": {
|
"@playwright/test-runner": {
|
||||||
"version": "0.2.9",
|
"version": "0.2.10",
|
||||||
"resolved": "https://registry.npmjs.org/@playwright/test-runner/-/test-runner-0.2.9.tgz",
|
"resolved": "https://registry.npmjs.org/@playwright/test-runner/-/test-runner-0.2.10.tgz",
|
||||||
"integrity": "sha512-eFoL7P3Q7+wXMHtirvTeGAs0IG2937mnOnJSvB5Zi7BMier5oPLWcLllQKSEBIE37ZqKXkf4+huUs+Aq6eeAhA==",
|
"integrity": "sha512-kOM8m+4/Crjjc01tC9avvMC/2GIMR46jpZrkNIpsBmbn3PkmLXNCyl0rT+2vqmHVaWDTAK6xxjN7JE3Xra3YSQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.10.4",
|
"@babel/code-frame": "^7.10.4",
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
"@babel/core": "^7.11.4",
|
"@babel/core": "^7.11.4",
|
||||||
"@babel/preset-env": "^7.11.0",
|
"@babel/preset-env": "^7.11.0",
|
||||||
"@babel/preset-typescript": "^7.10.4",
|
"@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/babel__core": "^7.1.9",
|
||||||
"@types/debug": "^4.1.5",
|
"@types/debug": "^4.1.5",
|
||||||
"@types/extract-zip": "^1.6.2",
|
"@types/extract-zip": "^1.6.2",
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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}) {
|
it('should work', async function({page}) {
|
||||||
await page.setContent(`
|
await page.setContent(`
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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}) => {
|
it('should await navigation when clicking anchor', async ({page, server}) => {
|
||||||
const messages = [];
|
const messages = [];
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* 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}) {
|
it('should create new page', async function({browser}) {
|
||||||
const page1 = await browser.newPage();
|
const page1 = await browser.newPage();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({context, page, server}) => {
|
it('should work', async ({context, page, server}) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should clear cookies', async ({context, page, server}) => {
|
it('should clear cookies', async ({context, page, server}) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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}) => {
|
it('should return no cookies in pristine browser context', async ({context, page, server}) => {
|
||||||
expect(await context.cookies()).toEqual([]);
|
expect(await context.cookies()).toEqual([]);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should fail without credentials', test => {
|
it('should fail without credentials', test => {
|
||||||
test.fail(options.CHROMIUM && !options.HEADLESS);
|
test.fail(options.CHROMIUM && !options.HEADLESS);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import * as utils from './utils';
|
import * as utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
describe('device', suite => {
|
describe('device', suite => {
|
||||||
suite.skip(options.FIREFOX);
|
suite.skip(options.FIREFOX);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('expose binding should work', async ({browser}) => {
|
it('expose binding should work', async ({browser}) => {
|
||||||
const context = await browser.newContext();
|
const context = await browser.newContext();
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should affect accept-language header', async ({browser, server}) => {
|
it('should affect accept-language header', async ({browser, server}) => {
|
||||||
const context = await browser.newContext({ locale: 'fr-CH' });
|
const context = await browser.newContext({ locale: 'fr-CH' });
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should have url', async ({browser, server}) => {
|
it('should have url', async ({browser, server}) => {
|
||||||
const context = await browser.newContext();
|
const context = await browser.newContext();
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should intercept', async ({browser, server}) => {
|
it('should intercept', async ({browser, server}) => {
|
||||||
const context = await browser.newContext();
|
const context = await browser.newContext();
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ browser }) => {
|
it('should work', async ({ browser }) => {
|
||||||
const func = () => new Date(1479579154987).toString();
|
const func = () => new Date(1479579154987).toString();
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
describe('mobile viewport', suite => {
|
describe('mobile viewport', suite => {
|
||||||
suite.skip(options.FIREFOX);
|
suite.skip(options.FIREFOX);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('browserType.executablePath should work', test => {
|
it('browserType.executablePath should work', test => {
|
||||||
test.skip(Boolean(process.env.CRPATH || process.env.FFPATH || process.env.WKPATH));
|
test.skip(Boolean(process.env.CRPATH || process.env.FFPATH || process.env.WKPATH));
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
import './remoteServer.fixture';
|
import './remoteServer.fixture';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
describe('lauch server', suite => {
|
describe('lauch server', suite => {
|
||||||
suite.skip(options.WIRE);
|
suite.skip(options.WIRE);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import path from 'path';
|
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}) => {
|
it('should reject all promises when browser is closed', async ({browserType, defaultBrowserOptions}) => {
|
||||||
const browser = await browserType.launch(defaultBrowserOptions);
|
const browser = await browserType.launch(defaultBrowserOptions);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import url from 'url';
|
import url from 'url';
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('Web Assembly should work', test => {
|
it('Web Assembly should work', test => {
|
||||||
test.fail(options.WEBKIT && WIN);
|
test.fail(options.WEBKIT && WIN);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import type { ChromiumBrowser } from '..';
|
import type { ChromiumBrowser } from '..';
|
||||||
|
|
||||||
it('should work', async ({browser}) => {
|
it('should work', async ({browser}) => {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should check the box', async ({page}) => {
|
it('should check the box', async ({page}) => {
|
||||||
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
|
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
describe('oopif', suite => {
|
describe('oopif', suite => {
|
||||||
suite.skip(!options.CHROMIUM);
|
suite.skip(!options.CHROMIUM);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should be missing', test => {
|
it('should be missing', test => {
|
||||||
test.skip(options.CHROMIUM);
|
test.skip(options.CHROMIUM);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it, describe, options } from '../playwright.fixtures';
|
import { it, expect, describe, options } from '../playwright.fixtures';
|
||||||
import type { ChromiumBrowserContext } from '../..';
|
import type { ChromiumBrowserContext } from '../..';
|
||||||
|
|
||||||
describe('chromium', suite => {
|
describe('chromium', suite => {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it, options } from '../playwright.fixtures';
|
import { it, expect, options } from '../playwright.fixtures';
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import utils from '../utils';
|
import utils from '../utils';
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { options } from '../playwright.fixtures';
|
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) => {
|
registerWorkerFixture('browser', async ({browserType, defaultBrowserOptions}, test) => {
|
||||||
const browser = await browserType.launch({
|
const browser = await browserType.launch({
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* 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';
|
import type { ChromiumBrowserContext, ChromiumBrowser } from '../../types/types';
|
||||||
|
|
||||||
describe('session', suite => {
|
describe('session', suite => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { options } from '../playwright.fixtures';
|
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 fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
declare const renderComponent;
|
declare const renderComponent;
|
||||||
declare const e;
|
declare const e;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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 => {
|
it('should avoid side effects after timeout', test => {
|
||||||
test.skip(options.WIRE);
|
test.skip(options.WIRE);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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}) => {
|
it('should timeout waiting for display:none to be gone', async ({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/input/button.html');
|
await page.goto(server.PREFIX + '/input/button.html');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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 => {
|
it('should fail when element jumps during hit testing', test => {
|
||||||
test.skip(options.WIRE);
|
test.skip(options.WIRE);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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}) => {
|
it('should timeout waiting for stable position', async ({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/input/button.html');
|
await page.goto(server.PREFIX + '/input/button.html');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
async function giveItAChanceToClick(page) {
|
async function giveItAChanceToClick(page) {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
const { removeUserDataDir, makeUserDataDir } = utils;
|
const { removeUserDataDir, makeUserDataDir } = utils;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should fire', async ({page, server}) => {
|
it('should fire', async ({page, server}) => {
|
||||||
page.on('dialog', dialog => {
|
page.on('dialog', dialog => {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { options } from './playwright.fixtures';
|
import { options } from './playwright.fixtures';
|
||||||
import { it, beforeEach } from '@playwright/test-runner';
|
import { it, expect, beforeEach } from '@playwright/test-runner';
|
||||||
import './remoteServer.fixture';
|
import './remoteServer.fixture';
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, registerFixture } from '@playwright/test-runner';
|
import { it, expect, registerFixture } from '@playwright/test-runner';
|
||||||
import './playwright.fixtures';
|
import './playwright.fixtures';
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from '../playwright.fixtures';
|
import { it, expect, describe, options } from '../playwright.fixtures';
|
||||||
import './electron.fixture';
|
import './electron.fixture';
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from '../playwright.fixtures';
|
import { it, expect, describe, options } from '../playwright.fixtures';
|
||||||
import './electron.fixture';
|
import './electron.fixture';
|
||||||
|
|
||||||
describe('electron window', suite => {
|
describe('electron window', suite => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
|
|
||||||
it('should work', test => {
|
it('should work', test => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ page, server }) => {
|
it('should work', async ({ page, server }) => {
|
||||||
await page.goto(server.PREFIX + '/input/button.html');
|
await page.goto(server.PREFIX + '/input/button.html');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should have a nice preview', async ({ page, server }) => {
|
it('should have a nice preview', async ({ page, server }) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({page, server}) => {
|
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>');
|
await page.setContent('<html><body><div class="tweet"><div class="like">100</div><div class="retweets">10</div></div></body></html>');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should hover', async ({ page, server }) => {
|
it('should hover', async ({ page, server }) => {
|
||||||
await page.goto(server.PREFIX + '/input/scrollable.html');
|
await page.goto(server.PREFIX + '/input/scrollable.html');
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ page, server }) => {
|
it('should work', async ({ page, server }) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ page }) => {
|
it('should work', async ({ page }) => {
|
||||||
await page.setContent(`<input type='text' />`);
|
await page.setContent(`<input type='text' />`);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should query existing element', async ({page, server}) => {
|
it('should query existing element', async ({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/playground.html');
|
await page.goto(server.PREFIX + '/playground.html');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
import {PNG} from 'pngjs';
|
import {PNG} from 'pngjs';
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ page, server }) => {
|
it('should work', async ({ page, server }) => {
|
||||||
await page.goto(server.PREFIX + '/offscreenbuttons.html');
|
await page.goto(server.PREFIX + '/offscreenbuttons.html');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should select textarea', async ({ page, server }) => {
|
it('should select textarea', async ({ page, server }) => {
|
||||||
await page.goto(server.PREFIX + '/input/textarea.html');
|
await page.goto(server.PREFIX + '/input/textarea.html');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ page }) => {
|
it('should work', async ({ page }) => {
|
||||||
await page.setContent(`<input type='text' />`);
|
await page.setContent(`<input type='text' />`);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
async function giveItAChanceToResolve(page) {
|
async function giveItAChanceToResolve(page) {
|
||||||
for (let i = 0; i < 5; i++)
|
for (let i = 0; i < 5; i++)
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should think that it is focused by default', async ({page}) => {
|
it('should think that it is focused by default', async ({page}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work with css selector', async ({page, server}) => {
|
it('should work with css selector', async ({page, server}) => {
|
||||||
await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');
|
await page.setContent('<div>hello</div><div>beautiful</div><div>world!</div>');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work with css selector', async ({page, server}) => {
|
it('should work with css selector', async ({page, server}) => {
|
||||||
await page.setContent('<section id="testAttribute">43543</section>');
|
await page.setContent('<section id="testAttribute">43543</section>');
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { it, options } from '../playwright.fixtures';
|
import { it, expect, options } from '../playwright.fixtures';
|
||||||
|
|
||||||
it('should pass firefox user preferences', test => {
|
it('should pass firefox user preferences', test => {
|
||||||
test.skip(!options.FIREFOX);
|
test.skip(!options.FIREFOX);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
import './remoteServer.fixture';
|
import './remoteServer.fixture';
|
||||||
|
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', test => {
|
it('should work', test => {
|
||||||
test.skip(options.FIREFOX);
|
test.skip(options.FIREFOX);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should handle nested frames', async ({page, server}) => {
|
it('should handle nested frames', async ({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({page, server, context}) => {
|
it('should work', async ({page, server, context}) => {
|
||||||
await context.grantPermissions(['geolocation']);
|
await context.grantPermissions(['geolocation']);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
const { makeUserDataDir, removeUserDataDir } = utils;
|
const { makeUserDataDir, removeUserDataDir } = utils;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({browser, httpsServer}) => {
|
it('should work', async ({browser, httpsServer}) => {
|
||||||
let error = null;
|
let error = null;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
import { globToRegex } from '../lib/client/clientHelper';
|
import { globToRegex } from '../lib/client/clientHelper';
|
||||||
import vm from 'vm';
|
import vm from 'vm';
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({page}) => {
|
it('should work', async ({page}) => {
|
||||||
const aHandle = await page.evaluateHandle(() => document.body);
|
const aHandle = await page.evaluateHandle(() => document.body);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work with function', async ({page}) => {
|
it('should work with function', async ({page}) => {
|
||||||
const windowHandle = await page.evaluateHandle(() => {
|
const windowHandle = await page.evaluateHandle(() => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({page}) => {
|
it('should work', async ({page}) => {
|
||||||
const aHandle = await page.evaluateHandle(() => ({foo: 'bar'}));
|
const aHandle = await page.evaluateHandle(() => ({foo: 'bar'}));
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({page}) => {
|
it('should work', async ({page}) => {
|
||||||
const aHandle = await page.evaluateHandle(() => ({
|
const aHandle = await page.evaluateHandle(() => ({
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work for primitives', async ({page}) => {
|
it('should work for primitives', async ({page}) => {
|
||||||
const numberHandle = await page.evaluateHandle(() => 2);
|
const numberHandle = await page.evaluateHandle(() => 2);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should type into a textarea', async ({page}) => {
|
it('should type into a textarea', async ({page}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should log', async ({browserType, defaultBrowserOptions}) => {
|
it('should log', async ({browserType, defaultBrowserOptions}) => {
|
||||||
const log = [];
|
const log = [];
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, xdescribe, options } from './playwright.fixtures';
|
import { it, expect, xdescribe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
function dimensions() {
|
function dimensions() {
|
||||||
const rect = document.querySelector('textarea').getBoundingClientRect();
|
const rect = document.querySelector('textarea').getBoundingClientRect();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should work for main frame navigation request', async ({page, server}) => {
|
it('should work for main frame navigation request', async ({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
it('should evaluate before anything else on the page', async ({ page, server }) => {
|
it('should evaluate before anything else on the page', async ({ page, server }) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
it('should throw an error if no options are provided', async ({page, server}) => {
|
it('should throw an error if no options are provided', async ({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
it('should throw an error if no options are provided', async ({page, server}) => {
|
it('should throw an error if no options are provided', async ({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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}) => {
|
it('should reject all promises when page is closed', async ({context}) => {
|
||||||
const newPage = await context.newPage();
|
const newPage = await context.newPage();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should emulate type', async ({page, server}) => {
|
it('should emulate type', async ({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({page, server}) => {
|
it('should work', async ({page, server}) => {
|
||||||
const windowHandle = await page.evaluateHandle(() => window);
|
const windowHandle = await page.evaluateHandle(() => window);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({ page, server }) => {
|
it('should work', async ({ page, server }) => {
|
||||||
const result = await page.evaluate(() => 7 * 3);
|
const result = await page.evaluate(() => 7 * 3);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import util from 'util';
|
import util from 'util';
|
||||||
|
|
||||||
it('should work', async ({page, server}) => {
|
it('should work', async ({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, describe, options } from './playwright.fixtures';
|
import { it, expect, describe, options } from './playwright.fixtures';
|
||||||
|
|
||||||
function crash(pageImpl, browserName) {
|
function crash(pageImpl, browserName) {
|
||||||
if (browserName === 'chromium')
|
if (browserName === 'chromium')
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('Page.Events.Request', async ({page, server}) => {
|
it('Page.Events.Request', async ({page, server}) => {
|
||||||
const requests = [];
|
const requests = [];
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it, options } from './playwright.fixtures';
|
import { it, expect, options } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should fire', async ({page, server}) => {
|
it('should fire', async ({page, server}) => {
|
||||||
const [error] = await Promise.all([
|
const [error] = await Promise.all([
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
|
|
||||||
it('should work', async ({browser}) => {
|
it('should work', async ({browser}) => {
|
||||||
const context = await browser.newContext();
|
const context = await browser.newContext();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { it } from './playwright.fixtures';
|
import { it, expect } from './playwright.fixtures';
|
||||||
import utils from './utils';
|
import utils from './utils';
|
||||||
|
|
||||||
it('should fire for navigation requests', async ({page, server}) => {
|
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
Loading…
Reference in a new issue