chore: roll test-runner to 1.13.0-next-1625774143000 (#7519)

This commit is contained in:
Max Schmitt 2021-07-09 08:36:11 +02:00 committed by GitHub
parent f5b552fde7
commit bc2f161a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 17 deletions

View file

@ -5,7 +5,7 @@
"packages": { "packages": {
"": { "": {
"dependencies": { "dependencies": {
"@playwright/test": "=1.13.0-next-1624652839000" "@playwright/test": "=1.13.0-next-1625774143000"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
@ -633,9 +633,9 @@
} }
}, },
"node_modules/@playwright/test": { "node_modules/@playwright/test": {
"version": "1.13.0-next-1624652839000", "version": "1.13.0-next-1625774143000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.13.0-next-1624652839000.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.13.0-next-1625774143000.tgz",
"integrity": "sha512-Wk13qqdyYOKTMUv0WH5YXuBD7mDOYCiiICkAM94fqlnLeq8GsL7uxg2qCh0ny/eXqs71D2jTMqZ9aRgBsYcLXw==", "integrity": "sha512-DBMLRrfwspj+cerloIWwB/S9X20KMbZ6Sj3KISeh+YWO2P02jFkJQ54VGJZx08Q5I1J9/WepYuPHZPSI8G3vew==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@babel/code-frame": "^7.12.13", "@babel/code-frame": "^7.12.13",
@ -2392,9 +2392,9 @@
} }
}, },
"@playwright/test": { "@playwright/test": {
"version": "1.13.0-next-1624652839000", "version": "1.13.0-next-1625774143000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.13.0-next-1624652839000.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.13.0-next-1625774143000.tgz",
"integrity": "sha512-Wk13qqdyYOKTMUv0WH5YXuBD7mDOYCiiICkAM94fqlnLeq8GsL7uxg2qCh0ny/eXqs71D2jTMqZ9aRgBsYcLXw==", "integrity": "sha512-DBMLRrfwspj+cerloIWwB/S9X20KMbZ6Sj3KISeh+YWO2P02jFkJQ54VGJZx08Q5I1J9/WepYuPHZPSI8G3vew==",
"requires": { "requires": {
"@babel/code-frame": "^7.12.13", "@babel/code-frame": "^7.12.13",
"@babel/core": "^7.14.0", "@babel/core": "^7.14.0",

View file

@ -1,6 +1,6 @@
{ {
"private": true, "private": true,
"dependencies": { "dependencies": {
"@playwright/test": "=1.13.0-next-1624652839000" "@playwright/test": "=1.13.0-next-1625774143000"
} }
} }

View file

@ -47,7 +47,7 @@ it('should work with data-test-id selector', async ({page, server}) => {
expect(idAttribute).toBe('testAttribute'); expect(idAttribute).toBe('testAttribute');
}); });
it('should work with text selector', async ({page, server}) => { it('should work with text selector in quotes', async ({page, server}) => {
await page.setContent('<section id="testAttribute">43543</section>'); await page.setContent('<section id="testAttribute">43543</section>');
const idAttribute = await page.$eval('text="43543"', e => e.id); const idAttribute = await page.$eval('text="43543"', e => e.id);
expect(idAttribute).toBe('testAttribute'); expect(idAttribute).toBe('testAttribute');

View file

@ -136,7 +136,7 @@ it('should dispatch drag drop events', async ({page, server}) => {
}, {source, target})).toBeTruthy(); }, {source, target})).toBeTruthy();
}); });
it('should dispatch drag drop events', async ({page, server}) => { it('should dispatch drag drop events via ElementHandles', async ({page, server}) => {
await page.goto(server.PREFIX + '/drag-n-drop.html'); await page.goto(server.PREFIX + '/drag-n-drop.html');
const dataTransfer = await page.evaluateHandle(() => new DataTransfer()); const dataTransfer = await page.evaluateHandle(() => new DataTransfer());
const source = await page.$('#source'); const source = await page.$('#source');
@ -148,7 +148,7 @@ it('should dispatch drag drop events', async ({page, server}) => {
}, {source, target})).toBeTruthy(); }, {source, target})).toBeTruthy();
}); });
it('should dispatch click event', async ({page, server}) => { it('should dispatch click event via ElementHandles', async ({page, server}) => {
await page.goto(server.PREFIX + '/input/button.html'); await page.goto(server.PREFIX + '/input/button.html');
const button = await page.$('button'); const button = await page.$('button');
await button.dispatchEvent('click'); await button.dispatchEvent('click');

View file

@ -506,7 +506,7 @@ it('should work with CSP', async ({ page, server }) => {
expect(await page.evaluate(() => 2 + 2)).toBe(4); expect(await page.evaluate(() => 2 + 2)).toBe(4);
}); });
it('should evaluate exception', async ({ page }) => { it('should evaluate exception with a function on the stack', async ({ page }) => {
const error = await page.evaluate(() => { const error = await page.evaluate(() => {
return (function functionOnStack() { return (function functionOnStack() {
return new Error('error message'); return new Error('error message');

View file

@ -185,7 +185,7 @@ it('should override post data content type', async ({page, server, isAndroid}) =
expect(request.headers['content-type']).toBe('application/x-www-form-urlencoded; charset=UTF-8'); expect(request.headers['content-type']).toBe('application/x-www-form-urlencoded; charset=UTF-8');
}); });
it('should be |undefined| when there is no post data', async ({page, server, isAndroid}) => { it('should get |undefined| with postData() when there is no post data', async ({page, server, isAndroid}) => {
it.fixme(isAndroid, 'Post data does not work'); it.fixme(isAndroid, 'Post data does not work');
const response = await page.goto(server.EMPTY_PAGE); const response = await page.goto(server.EMPTY_PAGE);
@ -217,7 +217,7 @@ it('should parse the data if content-type is application/x-www-form-urlencoded',
expect(request.postDataJSON()).toEqual({'foo': 'bar','baz': '123'}); expect(request.postDataJSON()).toEqual({'foo': 'bar','baz': '123'});
}); });
it('should be |undefined| when there is no post data', async ({ page, server }) => { it('should get |undefined| with postDataJSON() when there is no post data', async ({ page, server }) => {
const response = await page.goto(server.EMPTY_PAGE); const response = await page.goto(server.EMPTY_PAGE);
expect(response.request().postDataJSON()).toBe(null); expect(response.request().postDataJSON()).toBe(null);
}); });

View file

@ -67,13 +67,13 @@ test('should grep test name', async ({ runInlineTest }) => {
expect(result.exitCode).toBe(0); expect(result.exitCode).toBe(0);
}); });
test('should grep test name with //', async ({ runInlineTest }) => { test('should grep test name with regular expression', async ({ runInlineTest }) => {
const result = await runInlineTest(files, { 'grep': '/B$/' }); const result = await runInlineTest(files, { 'grep': '/B$/' });
expect(result.passed).toBe(3); expect(result.passed).toBe(3);
expect(result.exitCode).toBe(0); expect(result.exitCode).toBe(0);
}); });
test('should grep test name with //', async ({ runInlineTest }) => { test('should grep test name with regular expression and a space', async ({ runInlineTest }) => {
const result = await runInlineTest(files, { 'grep': '/TesT c/i' }); const result = await runInlineTest(files, { 'grep': '/TesT c/i' });
expect(result.passed).toBe(3); expect(result.passed).toBe(3);
expect(result.exitCode).toBe(0); expect(result.exitCode).toBe(0);

View file

@ -175,7 +175,7 @@ it('does launch without a port', async ({ browserType, browserOptions }) => {
await browser.close(); await browser.close();
}); });
it('should use proxy', async ({ browserType, browserOptions }) => { it('should use proxy with emulated user agent', async ({ browserType, browserOptions }) => {
it.fixme(true, 'Non-emulated user agent is used in proxy CONNECT'); it.fixme(true, 'Non-emulated user agent is used in proxy CONNECT');
let requestText = ''; let requestText = '';