Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Max Schmittbc2f161a55a5
diff --git a/tests/config/test-runner/package-lock.json b/tests/config/test-runner/package-lock.json
index 9b775b8869..10128d349b 100644
--- a/tests/config/test-runner/package-lock.json
+++ b/tests/config/test-runner/package-lock.json
@@ -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",
diff --git a/tests/config/test-runner/package.json b/tests/config/test-runner/package.json
index a22977f5b6..395df72a14 100644
--- a/tests/config/test-runner/package.json
+++ b/tests/config/test-runner/package.json
@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
- "@playwright/test": "=1.13.0-next-1624652839000"
+ "@playwright/test": "=1.13.0-next-1625774143000"
}
}
diff --git a/tests/page/eval-on-selector.spec.ts b/tests/page/eval-on-selector.spec.ts
index a1f8bb1fc7..b09c0bae9f 100644
--- a/tests/page/eval-on-selector.spec.ts
+++ b/tests/page/eval-on-selector.spec.ts
@@ -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');
diff --git a/tests/page/page-dispatchevent.spec.ts b/tests/page/page-dispatchevent.spec.ts
index 643b33153c..78054f3ba7 100644
--- a/tests/page/page-dispatchevent.spec.ts
+++ b/tests/page/page-dispatchevent.spec.ts
@@ -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');
diff --git a/tests/page/page-evaluate.spec.ts b/tests/page/page-evaluate.spec.ts
index cd0d971672..4a6e231cce 100644
--- a/tests/page/page-evaluate.spec.ts
+++ b/tests/page/page-evaluate.spec.ts
@@ -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');
diff --git a/tests/page/page-network-request.spec.ts b/tests/page/page-network-request.spec.ts
index 5add85a26c..544b680723 100644
--- a/tests/page/page-network-request.spec.ts
+++ b/tests/page/page-network-request.spec.ts
@@ -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);
});
diff --git a/tests/playwright-test/match-grep.spec.ts b/tests/playwright-test/match-grep.spec.ts
index 9ccb70210a..abeedeef9e 100644
--- a/tests/playwright-test/match-grep.spec.ts
+++ b/tests/playwright-test/match-grep.spec.ts
@@ -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);
diff --git a/tests/proxy.spec.ts b/tests/proxy.spec.ts
index 15f2ae0a6a..9c424541a2 100644
--- a/tests/proxy.spec.ts
+++ b/tests/proxy.spec.ts
@@ -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 = '';