From be9dcb4247cc2f4802af893a9f5ca3d23f27317f Mon Sep 17 00:00:00 2001 From: sipayrt Date: Thu, 26 Sep 2024 22:34:45 +0300 Subject: [PATCH] fix: fix broken links --- blog/component-testing.mdx | 2 +- docs/command-line/index.mdx | 2 +- docs/guides/component-testing.mdx | 4 +- .../how-to-upgrade-hermione-to-5.mdx | 2 +- .../how-to-upgrade-hermione-to-7.mdx | 2 +- .../component-testing.mdx | 2 +- .../vscode-extension.mdx | 2 +- .../current/command-line/index.mdx | 6 +- .../current/guides/component-testing.mdx | 4 +- .../how-to-upgrade-hermione-to-5.mdx | 95 +++++++++++++++---- .../how-to-upgrade-hermione-to-7.mdx | 2 +- 11 files changed, 93 insertions(+), 30 deletions(-) diff --git a/blog/component-testing.mdx b/blog/component-testing.mdx index ac6cad1..39c55c9 100644 --- a/blog/component-testing.mdx +++ b/blog/component-testing.mdx @@ -38,7 +38,7 @@ import Admonition from "@theme/Admonition"; ### Как использовать? -Узнайте больше об этом в нашей документации Компонентное тестирование. +Узнайте больше об этом в нашей документации Компонентное тестирование. ### Заключение diff --git a/docs/command-line/index.mdx b/docs/command-line/index.mdx index eae538b..fa87954 100644 --- a/docs/command-line/index.mdx +++ b/docs/command-line/index.mdx @@ -160,7 +160,7 @@ testplane --inspect #### Inspect break {#testplane-inspect-brk} -The same as [Inspect](#inspect), but with breakpoint at the start. +The same as [Inspect](#testplane-inspect), but with breakpoint at the start. ```bash testplane --inspect-brk diff --git a/docs/guides/component-testing.mdx b/docs/guides/component-testing.mdx index 1f08a3e..638c9f5 100644 --- a/docs/guides/component-testing.mdx +++ b/docs/guides/component-testing.mdx @@ -4,7 +4,7 @@ import Admonition from "@theme/Admonition"; ## Introduction -Read more about it in our blog post Component Testing. +Read more about it in our blog post Component Testing. ## Example @@ -174,4 +174,4 @@ Calling the `log`, `info`, `warn`, `error`, `debug` and `table` commands on the [testplane-examples-component-testing]: https://github.com/gemini-testing/testplane/tree/master/examples/component-testing [testplane-global-hook]: https://github.com/gemini-testing/testplane-global-hook [vite-hmr]: https://vitejs.dev/guide/api-hmr.html -[repl-mode]: ../command-line/index.mdx#repl +[repl-mode]: ../command-line/index.mdx#testplane-repl diff --git a/docs/migrations/how-to-upgrade-hermione-to-5.mdx b/docs/migrations/how-to-upgrade-hermione-to-5.mdx index cfae071..bf05c3b 100644 --- a/docs/migrations/how-to-upgrade-hermione-to-5.mdx +++ b/docs/migrations/how-to-upgrade-hermione-to-5.mdx @@ -73,5 +73,5 @@ If you encounter any issues during the migration to the new version or have any [http-timeout]: ../../config/browsers#http_timeout [page-load-timeout]: ../../config/browsers#page_load_timeout [session-quit-timeout]: ../../config/browsers#session_quit_timeout -[save-history]: ../../config/browsers#save_history +[save-history]: https://www.npmjs.com/package/hermione/v/5.6.4#savehistory [gh-issues]: https://github.com/gemini-testing/testplane/issues diff --git a/docs/migrations/how-to-upgrade-hermione-to-7.mdx b/docs/migrations/how-to-upgrade-hermione-to-7.mdx index 16d3046..8add1eb 100644 --- a/docs/migrations/how-to-upgrade-hermione-to-7.mdx +++ b/docs/migrations/how-to-upgrade-hermione-to-7.mdx @@ -123,7 +123,7 @@ If you encounter issues during the migration to the new version or have any ques [how-to-upgrade-hermione-to-5]: ../../migrations/how-to-upgrade-hermione-to-5 [how-to-upgrade-hermione-to-6]: ../../migrations/how-to-upgrade-hermione-to-6 [screenshots-dir]: ../../config/browsers#screenshots_dir -[save_history]: ../../config/browsers#save_history +[save_history]: https://www.npmjs.com/package/hermione/v/6.1.4#savehistory [save_history_mode]: ../../config/browsers#save_history_mode [webdriverio@7]: https://webdriver.io/ [webdriverio@8]: https://webdriver.io/ diff --git a/i18n/en/docusaurus-plugin-content-blog/component-testing.mdx b/i18n/en/docusaurus-plugin-content-blog/component-testing.mdx index 4053ac9..4106599 100644 --- a/i18n/en/docusaurus-plugin-content-blog/component-testing.mdx +++ b/i18n/en/docusaurus-plugin-content-blog/component-testing.mdx @@ -38,7 +38,7 @@ We chose the option of using Vite because this approach provides testing of the ### How to use? -Read more about it in our documentation Component Testing. +Read more about it in our documentation Component Testing. ### Conclusion diff --git a/i18n/en/docusaurus-plugin-content-blog/vscode-extension.mdx b/i18n/en/docusaurus-plugin-content-blog/vscode-extension.mdx index d93eb71..d19fabf 100644 --- a/i18n/en/docusaurus-plugin-content-blog/vscode-extension.mdx +++ b/i18n/en/docusaurus-plugin-content-blog/vscode-extension.mdx @@ -74,7 +74,7 @@ Example of running tests from a text editor: #### With the `devtools` settings -In the sidebar of the testing panel, there is also a section titled Testplane. Here you can manage settings at runtime. By clicking the `Enable devtools` checkbox and subsequently running tests, browsers will launch using the CDP protocol (regardless of what is specified in the config). You can read more about this mode here.. +In the sidebar of the testing panel, there is also a section titled Testplane. Here you can manage settings at runtime. By clicking the `Enable devtools` checkbox and subsequently running tests, browsers will launch using the CDP protocol (regardless of what is specified in the config). You can read more about this mode here.. ![Enabling devtools option](/img/blog/vscode-extension/enable-devtools.png) diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/command-line/index.mdx b/i18n/ru/docusaurus-plugin-content-docs/current/command-line/index.mdx index c18c27f..991a915 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/command-line/index.mdx +++ b/i18n/ru/docusaurus-plugin-content-docs/current/command-line/index.mdx @@ -189,7 +189,7 @@ testplane --update-refs Рекомендуемый способ обновления эталонов - использование плагина [html-reporter][html-reporter]. -## Inspect {#inspect} +## Inspect {#testplane-inspect} Запускает тесты Testplane с использованием [nodejs дебаггера](https://nodejs.org/en/docs/inspector). @@ -204,13 +204,13 @@ testplane --inspect ## Inspect break {#inspect-brk} -То же самое, что и [Inspect](#inspect), но с точкой останова в начале. +То же самое, что и [Inspect](#testplane-inspect), но с точкой останова в начале. ```bash testplane --inspect-brk ``` -## REPL {#repl} +## REPL {#testplane-repl} Включает [REPL](https://ru.wikipedia.org/wiki/REPL). Также отключает таймаут продолжительности теста. Может быть включен с помощью указания следующих CLI опций: diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/guides/component-testing.mdx b/i18n/ru/docusaurus-plugin-content-docs/current/guides/component-testing.mdx index 45262fb..11cd279 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/guides/component-testing.mdx +++ b/i18n/ru/docusaurus-plugin-content-docs/current/guides/component-testing.mdx @@ -4,7 +4,7 @@ import Admonition from "@theme/Admonition"; ## Введение -Узнайте больше об этом в посте про Компонентное тестирование в нашем блоге. +Узнайте больше об этом в посте про Компонентное тестирование в нашем блоге. ## Пример @@ -170,4 +170,4 @@ function Component() { [testplane-examples-component-testing]: https://github.com/gemini-testing/testplane/tree/master/examples/component-testing [testplane-global-hook]: https://github.com/gemini-testing/testplane-global-hook [vite-hmr]: https://vitejs.dev/guide/api-hmr.html -[repl-mode]: ../command-line/index.mdx#repl +[repl-mode]: ../command-line/index.mdx#testplane-repl diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-5.mdx b/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-5.mdx index 72f44e5..3f99f6b 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-5.mdx +++ b/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-5.mdx @@ -16,21 +16,84 @@ import Admonition from "@theme/Admonition"; Первое, на что стоит обратить внимание при переезде, — это изменение дефолтных значений некоторых опций в конфиге. Все изменения направлены на то, чтобы при базовой настройке hermione тесты проходили быстрее, а после прогона оставалось больше информации о тестах. - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
**Параметр****Было****Стало****Описание**
[antialiasingTolerance][antialiasing-tolerance]04Задает чувствительность определения антиалиасинга, который будет игнорироваться при сравнении скриншотов.
[compositeImage][composite-image]falsetrueПозволяет тестировать элементы, не влезающие во вьюпорт по высоте.
[saveHistory][save-history]falsetrueСохранять историю всех выполненных команд.
[takeScreenshotOnFails.assertViewFail][take-screenshot-on-fails-assert-view-fail]falsetrueОпределяет снимать ли скриншот страницы браузера _(Page Screenshot)_ при падении теста, а также при падении команды _assertView_.
[takeScreenshotOnFailsMode][take-screenshot-on-fails-mode]"viewport""fullpage"Режим снятия скриншота при падении теста. Доступные значения: _viewport_ и _fullpage_.
[takeScreenshotOnFailsTimeout][take-screenshot-on-fails-timeout]900005000Таймаут для снятия скриншота страницы браузера _(Page Screenshot)_ при падении теста, в мс.
[httpTimeout][http-timeout]9000030000Таймаут для любых запросов к Selenium-серверу, в мс.
[pageLoadTimeout][page-load-timeout]30000020000Таймаут для полной загрузки страницы, в мс.
[sessionQuitTimeout][session-quit-timeout]900005000Таймаут для завершения сессии, в мс.
**Параметр****Было****Стало****Описание**
[antialiasingTolerance][antialiasing-tolerance]04 + Задает чувствительность определения антиалиасинга, который будет игнорироваться при + сравнении скриншотов. +
[compositeImage][composite-image]falsetrueПозволяет тестировать элементы, не влезающие во вьюпорт по высоте.
[saveHistory][save-history]falsetrueСохранять историю всех выполненных команд.
+ [takeScreenshotOnFails.assertViewFail][take-screenshot-on-fails-assert-view-fail] + falsetrue + Определяет снимать ли скриншот страницы браузера _(Page Screenshot)_ при падении + теста, а также при падении команды _assertView_. +
[takeScreenshotOnFailsMode][take-screenshot-on-fails-mode]"viewport""fullpage" + Режим снятия скриншота при падении теста. Доступные значения: _viewport_ и + _fullpage_. +
[takeScreenshotOnFailsTimeout][take-screenshot-on-fails-timeout]900005000 + Таймаут для снятия скриншота страницы браузера _(Page Screenshot)_ при падении + теста, в мс. +
[httpTimeout][http-timeout]9000030000Таймаут для любых запросов к Selenium-серверу, в мс.
[pageLoadTimeout][page-load-timeout]30000020000Таймаут для полной загрузки страницы, в мс.
[sessionQuitTimeout][session-quit-timeout]900005000Таймаут для завершения сессии, в мс.
Кроме этого, удалены опции `screenshotOnReject` и `screenshotOnRejectTimeout`, которые ранее были объявлены как устаревшие _(deprecated)_. @@ -73,5 +136,5 @@ import Admonition from "@theme/Admonition"; [http-timeout]: ../../config/browsers#http_timeout [page-load-timeout]: ../../config/browsers#page_load_timeout [session-quit-timeout]: ../../config/browsers#session_quit_timeout -[save-history]: ../../config/browsers#save_history +[save-history]: https://www.npmjs.com/package/hermione/v/5.6.4#savehistory [gh-issues]: https://github.com/gemini-testing/testplane/issues/ diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-7.mdx b/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-7.mdx index e85474c..a3fb729 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-7.mdx +++ b/i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-7.mdx @@ -123,7 +123,7 @@ Reason: Something goes wrong [how-to-upgrade-hermione-to-5]: ../../migrations/how-to-upgrade-hermione-to-5 [how-to-upgrade-hermione-to-6]: ../../migrations/how-to-upgrade-hermione-to-6 [screenshots-dir]: ../../config/browsers#screenshots_dir -[save_history]: ../../config/browsers#save_history +[save_history]: https://www.npmjs.com/package/hermione/v/6.1.4#savehistory [save_history_mode]: ../../config/browsers#save_history_mode [webdriverio@7]: https://webdriver.io/ [webdriverio@8]: https://webdriver.io/