From 900382540af3d242d5566c9d22f78b1d1cd3350b Mon Sep 17 00:00:00 2001 From: Debbie O'Brien Date: Thu, 23 Jan 2025 15:17:23 +0100 Subject: [PATCH] docs: add --update-source-method option for snapshot updates in test-cli-js (#34448) --- docs/src/test-cli-js.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/test-cli-js.md b/docs/src/test-cli-js.md index 72068d57cf..eeb37802b4 100644 --- a/docs/src/test-cli-js.md +++ b/docs/src/test-cli-js.md @@ -111,5 +111,6 @@ Complete set of Playwright Test options is available in the [configuration file] | `--ui-host ` | Host to serve UI on; specifying this option opens UI in a browser tab. | | `--ui-port ` | Port to serve UI on, 0 for any free port; specifying this option opens UI in a browser tab. | | `-u` or `--update-snapshots [mode]` | Update snapshots with actual results. Possible values are "all", "changed", "missing", and "none". Not passing defaults to "missing"; passing without a value defaults to "changed". | +| `--update-source-method [mode]` | Update snapshots with actual results. Possible values are "patch" (default), "3way" and "overwrite". "Patch" creates a unified diff file that can be used to update the source code later. "3way" generates merge conflict markers in source code. "Overwrite" overwrites the source code with the new snapshot values.| | `-j ` or `--workers ` | Number of concurrent workers or percentage of logical CPU cores, use 1 to run in a single worker (default: 50%). | | `-x` | Stop after the first failure. |