playwright 1.57.0-alpha-2025-11-20 → 1.57.0-beta-1763649092000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types/test.d.ts +25 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.57.0-alpha-2025-11-20",
3
+ "version": "1.57.0-beta-1763649092000",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "license": "Apache-2.0",
66
66
  "dependencies": {
67
- "playwright-core": "1.57.0-alpha-2025-11-20"
67
+ "playwright-core": "1.57.0-beta-1763649092000"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "2.3.2"
package/types/test.d.ts CHANGED
@@ -992,6 +992,31 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
992
992
  * });
993
993
  * ```
994
994
  *
995
+ * If your webserver runs on varying ports, use `wait` to capture the port:
996
+ *
997
+ * ```js
998
+ * import { defineConfig } from '@playwright/test';
999
+ *
1000
+ * export default defineConfig({
1001
+ * webServer: {
1002
+ * command: 'npm run start',
1003
+ * wait: {
1004
+ * stdout: '/Listening on port (?<my_server_port>\\d+)/'
1005
+ * },
1006
+ * },
1007
+ * });
1008
+ * ```
1009
+ *
1010
+ * ```js
1011
+ * import { test, expect } from '@playwright/test';
1012
+ *
1013
+ * test.use({ baseUrl: `http://localhost:${process.env.MY_SERVER_PORT ?? 3000}` });
1014
+ *
1015
+ * test('homepage', async ({ page }) => {
1016
+ * await page.goto('/');
1017
+ * });
1018
+ * ```
1019
+ *
995
1020
  */
996
1021
  webServer?: TestConfigWebServer | TestConfigWebServer[];
997
1022
  /**