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

View File

@ -1,6 +1,6 @@
{
"private": true,
"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');
});
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>');
const idAttribute = await page.$eval('text="43543"', e => e.id);
expect(idAttribute).toBe('testAttribute');

View File

@ -136,7 +136,7 @@ it('should dispatch drag drop events', async ({page, server}) => {
}, {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');
const dataTransfer = await page.evaluateHandle(() => new DataTransfer());
const source = await page.$('#source');
@ -148,7 +148,7 @@ it('should dispatch drag drop events', async ({page, server}) => {
}, {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');
const button = await page.$('button');
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);
});
it('should evaluate exception', async ({ page }) => {
it('should evaluate exception with a function on the stack', async ({ page }) => {
const error = await page.evaluate(() => {
return (function functionOnStack() {
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');
});
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');
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'});
});
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);
expect(response.request().postDataJSON()).toBe(null);
});

View File

@ -67,13 +67,13 @@ test('should grep test name', async ({ runInlineTest }) => {
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$/' });
expect(result.passed).toBe(3);
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' });
expect(result.passed).toBe(3);
expect(result.exitCode).toBe(0);

View File

@ -175,7 +175,7 @@ it('does launch without a port', async ({ browserType, browserOptions }) => {
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');
let requestText = '';