Skip to content

Commit

Permalink
fix: fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
sipayRT committed Sep 26, 2024
1 parent d07de22 commit be9dcb4
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 30 deletions.
2 changes: 1 addition & 1 deletion blog/component-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import Admonition from "@theme/Admonition";

### Как использовать?

Узнайте больше об этом в нашей документации <a href="/docs/v8/guides/component-testing">Компонентное тестирование</a>.
Узнайте больше об этом в нашей документации <a href="/ru/docs/v8/guides/component-testing">Компонентное тестирование</a>.

### Заключение

Expand Down
2 changes: 1 addition & 1 deletion docs/command-line/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/component-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Admonition from "@theme/Admonition";

## Introduction

Read more about it in our blog post <a href="/en/blog/component-testing-intro">Component Testing</a>.
Read more about it in our blog post <a href="/blog/component-testing-intro">Component Testing</a>.

## Example

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/migrations/how-to-upgrade-hermione-to-5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/migrations/how-to-upgrade-hermione-to-7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="/en/docs/v8/guides/component-testing">Component Testing</a>.
Read more about it in our documentation <a href="/docs/v8/guides/component-testing">Component Testing</a>.

### Conclusion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="/en/docs/v8/guides/how-to-use-cdp/">here</a>..
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 <a href="/docs/v8/guides/how-to-use-cdp/">here</a>..

![Enabling devtools option](/img/blog/vscode-extension/enable-devtools.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ testplane --update-refs
Рекомендуемый способ обновления эталонов - использование плагина [html-reporter][html-reporter].
</Admonition>

## Inspect {#inspect}
## Inspect {#testplane-inspect}

Запускает тесты Testplane с использованием [nodejs дебаггера](https://nodejs.org/en/docs/inspector).

Expand All @@ -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 опций:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Admonition from "@theme/Admonition";

## Введение

Узнайте больше об этом в посте про <a href="/blog/component-testing-intro">Компонентное тестирование</a> в нашем блоге.
Узнайте больше об этом в посте про <a href="/ru/blog/component-testing-intro">Компонентное тестирование</a> в нашем блоге.

## Пример

Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,84 @@ import Admonition from "@theme/Admonition";
Первое, на что стоит обратить внимание при переезде, — это изменение дефолтных значений некоторых опций в конфиге. Все изменения направлены на то, чтобы при базовой настройке hermione тесты проходили быстрее, а после прогона оставалось больше информации о тестах.

<table>
<thead>
<tr><td>**Параметр**</td><td>**Было**</td><td>**Стало**</td><td>**Описание**</td></tr>
</thead>
<tbody>
<tr><td>[antialiasingTolerance][antialiasing-tolerance]</td><td>0</td><td>4</td><td>Задает чувствительность определения антиалиасинга, который будет игнорироваться при сравнении скриншотов.</td></tr>
<tr><td>[compositeImage][composite-image]</td><td>false</td><td>true</td><td>Позволяет тестировать элементы, не влезающие во вьюпорт по высоте.</td></tr>
<tr><td>[saveHistory][save-history]</td><td>false</td><td>true</td><td>Сохранять историю всех выполненных команд.</td></tr>
<tr><td>[takeScreenshotOnFails.assertViewFail][take-screenshot-on-fails-assert-view-fail]</td><td>false</td><td>true</td><td>Определяет снимать ли скриншот страницы браузера _(Page Screenshot)_ при падении теста, а также при падении команды _assertView_.</td></tr>
<tr><td>[takeScreenshotOnFailsMode][take-screenshot-on-fails-mode]</td><td>"viewport"</td><td>"fullpage"</td><td>Режим снятия скриншота при падении теста. Доступные значения: _viewport_ и _fullpage_.</td></tr>
<tr><td>[takeScreenshotOnFailsTimeout][take-screenshot-on-fails-timeout]</td><td>90000</td><td>5000</td><td>Таймаут для снятия скриншота страницы браузера _(Page Screenshot)_ при падении теста, в мс.</td></tr>
<tr><td>[httpTimeout][http-timeout]</td><td>90000</td><td>30000</td><td>Таймаут для любых запросов к Selenium-серверу, в мс.</td></tr>
<tr><td>[pageLoadTimeout][page-load-timeout]</td><td>300000</td><td>20000</td><td>Таймаут для полной загрузки страницы, в мс.</td></tr>
<tr><td>[sessionQuitTimeout][session-quit-timeout]</td><td>90000</td><td>5000</td><td>Таймаут для завершения сессии, в мс.</td></tr>

</tbody>
<thead>
<tr>
<td>**Параметр**</td>
<td>**Было**</td>
<td>**Стало**</td>
<td>**Описание**</td>
</tr>
</thead>
<tbody>
<tr>
<td>[antialiasingTolerance][antialiasing-tolerance]</td>
<td>0</td>
<td>4</td>
<td>
Задает чувствительность определения антиалиасинга, который будет игнорироваться при
сравнении скриншотов.
</td>
</tr>
<tr>
<td>[compositeImage][composite-image]</td>
<td>false</td>
<td>true</td>
<td>Позволяет тестировать элементы, не влезающие во вьюпорт по высоте.</td>
</tr>
<tr>
<td>[saveHistory][save-history]</td>
<td>false</td>
<td>true</td>
<td>Сохранять историю всех выполненных команд.</td>
</tr>
<tr>
<td>
[takeScreenshotOnFails.assertViewFail][take-screenshot-on-fails-assert-view-fail]
</td>
<td>false</td>
<td>true</td>
<td>
Определяет снимать ли скриншот страницы браузера _(Page Screenshot)_ при падении
теста, а также при падении команды _assertView_.
</td>
</tr>
<tr>
<td>[takeScreenshotOnFailsMode][take-screenshot-on-fails-mode]</td>
<td>"viewport"</td>
<td>"fullpage"</td>
<td>
Режим снятия скриншота при падении теста. Доступные значения: _viewport_ и
_fullpage_.
</td>
</tr>
<tr>
<td>[takeScreenshotOnFailsTimeout][take-screenshot-on-fails-timeout]</td>
<td>90000</td>
<td>5000</td>
<td>
Таймаут для снятия скриншота страницы браузера _(Page Screenshot)_ при падении
теста, в мс.
</td>
</tr>
<tr>
<td>[httpTimeout][http-timeout]</td>
<td>90000</td>
<td>30000</td>
<td>Таймаут для любых запросов к Selenium-серверу, в мс.</td>
</tr>
<tr>
<td>[pageLoadTimeout][page-load-timeout]</td>
<td>300000</td>
<td>20000</td>
<td>Таймаут для полной загрузки страницы, в мс.</td>
</tr>
<tr>
<td>[sessionQuitTimeout][session-quit-timeout]</td>
<td>90000</td>
<td>5000</td>
<td>Таймаут для завершения сессии, в мс.</td>
</tr>
</tbody>
</table>

Кроме этого, удалены опции `screenshotOnReject` и `screenshotOnRejectTimeout`, которые ранее были объявлены как устаревшие _(deprecated)_.
Expand Down Expand Up @@ -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/
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit be9dcb4

Please sign in to comment.