From 1fab4558efaf75c10dac5d7f4af920328cc0d2bb Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 10:11:20 +0000 Subject: [PATCH] feat(roll): roll to ToT Playwright (11-02-25) --- nodejs/docs/api/class-apirequest.mdx | 2 +- nodejs/docs/api/class-apirequestcontext.mdx | 2 +- nodejs/docs/api/class-browser.mdx | 4 ++-- nodejs/docs/api/class-browsercontext.mdx | 2 +- nodejs/docs/api/class-testoptions.mdx | 2 +- nodejs/docs/test-ui-mode.mdx | 8 ++++---- python/docs/api/class-apirequest.mdx | 2 +- python/docs/api/class-apirequestcontext.mdx | 2 +- python/docs/api/class-browser.mdx | 4 ++-- python/docs/api/class-browsercontext.mdx | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/nodejs/docs/api/class-apirequest.mdx b/nodejs/docs/api/class-apirequest.mdx index 27899f31291..48e6f8c4417 100644 --- a/nodejs/docs/api/class-apirequest.mdx +++ b/nodejs/docs/api/class-apirequest.mdx @@ -191,7 +191,7 @@ await apiRequest.newContext(options); - `keyEncoded` [Object] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Object] + - `value` [Object] *(optional)* - `valueEncoded` [Object] *(optional)* diff --git a/nodejs/docs/api/class-apirequestcontext.mdx b/nodejs/docs/api/class-apirequestcontext.mdx index 2b9c4f80e7b..331ef5a297d 100644 --- a/nodejs/docs/api/class-apirequestcontext.mdx +++ b/nodejs/docs/api/class-apirequestcontext.mdx @@ -666,7 +666,7 @@ await apiRequestContext.storageState(options); - `keyEncoded` [Object] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Object] + - `value` [Object] *(optional)* - `valueEncoded` [Object] *(optional)* diff --git a/nodejs/docs/api/class-browser.mdx b/nodejs/docs/api/class-browser.mdx index d48ce7778ab..86973afc5a7 100644 --- a/nodejs/docs/api/class-browser.mdx +++ b/nodejs/docs/api/class-browser.mdx @@ -427,7 +427,7 @@ If directly using this method to create [BrowserContext]s, it is best practice t - `keyEncoded` [Object] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Object] + - `value` [Object] *(optional)* - `valueEncoded` [Object] *(optional)* @@ -768,7 +768,7 @@ await browser.newPage(options); - `keyEncoded` [Object] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Object] + - `value` [Object] *(optional)* - `valueEncoded` [Object] *(optional)* diff --git a/nodejs/docs/api/class-browsercontext.mdx b/nodejs/docs/api/class-browsercontext.mdx index 49ab7293acf..242aac869e2 100644 --- a/nodejs/docs/api/class-browsercontext.mdx +++ b/nodejs/docs/api/class-browsercontext.mdx @@ -954,7 +954,7 @@ await browserContext.storageState(options); - `keyEncoded` [Object] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Object] + - `value` [Object] *(optional)* - `valueEncoded` [Object] *(optional)* diff --git a/nodejs/docs/api/class-testoptions.mdx b/nodejs/docs/api/class-testoptions.mdx index 6039e3fbcb6..8c8712bc2eb 100644 --- a/nodejs/docs/api/class-testoptions.mdx +++ b/nodejs/docs/api/class-testoptions.mdx @@ -916,7 +916,7 @@ export default defineConfig({ - `keyEncoded` [Object] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Object] + - `value` [Object] *(optional)* - `valueEncoded` [Object] *(optional)* diff --git a/nodejs/docs/test-ui-mode.mdx b/nodejs/docs/test-ui-mode.mdx index 33102c52c69..1f08808162a 100644 --- a/nodejs/docs/test-ui-mode.mdx +++ b/nodejs/docs/test-ui-mode.mdx @@ -24,7 +24,7 @@ npx playwright test --ui ## Running your tests -Once you launch UI Mode you will see a list of all your test files. You can run all your tests by clicking the triangle icon in the sidebar. You can also run a single test file, a block of tests or a single test by hovering over the name and clicking on the triangle next to it. +Once you launch UI Mode you will see a list of all your test files. You can run all your tests by clicking the triangle icon in the sidebar. You can also run a single test file, a block of tests or a single test by hovering over the name and clicking on the triangle next to it. ![running tests in ui mode](https://github.com/microsoft/playwright/assets/13063165/6b87712f-64a5-4d73-a91d-6562b864712c) @@ -42,7 +42,7 @@ At the top of the trace you can see a timeline view of your test with different ## Actions -In the Actions tab you can see what locator was used for every action and how long each one took to run. Hover over each action of your test and visually see the change in the DOM snapshot. Go back and forward in time and click an action to inspect and debug. Use the Before and After tabs to visually see what happened before and after the action. ![use before and after actions in ui mode](https://github.com/microsoft/playwright/assets/13063165/7b22fab5-7346-4b98-8fdd-a78ed280647f) +In the Actions tab you can see what locator was used for every action and how long each one took to run. Hover over each action of your test and visually see the change in the DOM snapshot. Go back and forward in time and click an action to inspect and debug. Use the Before and After tabs to visually see what happened before and after the action. ![use before and after actions in ui mode](https://github.com/microsoft/playwright/assets/13063165/7b22fab5-7346-4b98-8fdd-a78ed280647f) ## Pop out and inspect the DOM @@ -58,7 +58,7 @@ Click on the pick locator button and hover over the DOM snapshot to see the loca ## Source -As you hover over each action of your test the line of code for that action is highlighted in the source panel. +As you hover over each action of your test the line of code for that action is highlighted in the source panel. The button "Open in VSCode" is at the top-right of this section. Upon clicking the button, it will open your test in VS Code right at the line of code that you clicked on. ![showing source code of tests in ui mode](https://github.com/microsoft/playwright/assets/13063165/49b9fa2a-8a57-4044-acaa-0a2ea4784c5c) @@ -106,7 +106,7 @@ Next to the Actions tab you will find the Metadata tab which will show you more ## Watch mode -Next to the name of each test in the sidebar you will find an eye icon. Clicking on the icon will activate watch mode which will re-run the test when you make changes to it. You can watch a number of tests at the same time be clicking the eye icon next to each one or all tests by clicking the eye icon at the top of the sidebar. If you are using VS Code then you can easily open your test by clicking on the file icon next to the eye icon. This will open your test in VS Code right at the line of code that you clicked on. +Next to the name of each test in the sidebar you will find an eye icon. Clicking on the icon will activate watch mode which will re-run the test when you make changes to it. You can watch a number of tests at the same time be clicking the eye icon next to each one or all tests by clicking the eye icon at the top of the sidebar. ![watch mode in ui mode](https://github.com/microsoft/playwright/assets/13063165/20d7d44c-b52d-43ff-8871-8b828671f3da) diff --git a/python/docs/api/class-apirequest.mdx b/python/docs/api/class-apirequest.mdx index 05bf618aaf7..7ba4e366798 100644 --- a/python/docs/api/class-apirequest.mdx +++ b/python/docs/api/class-apirequest.mdx @@ -190,7 +190,7 @@ api_request.new_context(**kwargs) - `keyEncoded` [Dict] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Dict] + - `value` [Dict] *(optional)* - `valueEncoded` [Dict] *(optional)* diff --git a/python/docs/api/class-apirequestcontext.mdx b/python/docs/api/class-apirequestcontext.mdx index fb8cd851bdd..d9e14a1d5fe 100644 --- a/python/docs/api/class-apirequestcontext.mdx +++ b/python/docs/api/class-apirequestcontext.mdx @@ -756,7 +756,7 @@ api_request_context.storage_state(**kwargs) - `keyEncoded` [Dict] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Dict] + - `value` [Dict] *(optional)* - `valueEncoded` [Dict] *(optional)* diff --git a/python/docs/api/class-browser.mdx b/python/docs/api/class-browser.mdx index c70b1596a19..eafd76c1efa 100644 --- a/python/docs/api/class-browser.mdx +++ b/python/docs/api/class-browser.mdx @@ -425,7 +425,7 @@ await browser.close() - `keyEncoded` [Dict] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Dict] + - `value` [Dict] *(optional)* - `valueEncoded` [Dict] *(optional)* @@ -734,7 +734,7 @@ browser.new_page(**kwargs) - `keyEncoded` [Dict] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Dict] + - `value` [Dict] *(optional)* - `valueEncoded` [Dict] *(optional)* diff --git a/python/docs/api/class-browsercontext.mdx b/python/docs/api/class-browsercontext.mdx index 8ace769dadb..62ab1e98ef1 100644 --- a/python/docs/api/class-browsercontext.mdx +++ b/python/docs/api/class-browsercontext.mdx @@ -1282,7 +1282,7 @@ browser_context.storage_state(**kwargs) - `keyEncoded` [Dict] *(optional)* if `key` is not JSON-serializable, this contains an encoded version that preserves types. - - `value` [Dict] + - `value` [Dict] *(optional)* - `valueEncoded` [Dict] *(optional)*