Skip to content

Commit 4ee5578

Browse files
authored
Merge pull request #40 from gemini-testing/sp.fix-broken-links
fix: fix broken links
2 parents d07de22 + be9dcb4 commit 4ee5578

File tree

11 files changed

+93
-30
lines changed

11 files changed

+93
-30
lines changed

blog/component-testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import Admonition from "@theme/Admonition";
3838

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

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

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

docs/command-line/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ testplane --inspect
160160
161161
#### Inspect break {#testplane-inspect-brk}
162162
163-
The same as [Inspect](#inspect), but with breakpoint at the start.
163+
The same as [Inspect](#testplane-inspect), but with breakpoint at the start.
164164
165165
```bash
166166
testplane --inspect-brk

docs/guides/component-testing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Admonition from "@theme/Admonition";
44

55
## Introduction
66

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

99
## Example
1010

@@ -174,4 +174,4 @@ Calling the `log`, `info`, `warn`, `error`, `debug` and `table` commands on the
174174
[testplane-examples-component-testing]: https://github.com/gemini-testing/testplane/tree/master/examples/component-testing
175175
[testplane-global-hook]: https://github.com/gemini-testing/testplane-global-hook
176176
[vite-hmr]: https://vitejs.dev/guide/api-hmr.html
177-
[repl-mode]: ../command-line/index.mdx#repl
177+
[repl-mode]: ../command-line/index.mdx#testplane-repl

docs/migrations/how-to-upgrade-hermione-to-5.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ If you encounter any issues during the migration to the new version or have any
7373
[http-timeout]: ../../config/browsers#http_timeout
7474
[page-load-timeout]: ../../config/browsers#page_load_timeout
7575
[session-quit-timeout]: ../../config/browsers#session_quit_timeout
76-
[save-history]: ../../config/browsers#save_history
76+
[save-history]: https://www.npmjs.com/package/hermione/v/5.6.4#savehistory
7777
[gh-issues]: https://github.com/gemini-testing/testplane/issues

docs/migrations/how-to-upgrade-hermione-to-7.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ If you encounter issues during the migration to the new version or have any ques
123123
[how-to-upgrade-hermione-to-5]: ../../migrations/how-to-upgrade-hermione-to-5
124124
[how-to-upgrade-hermione-to-6]: ../../migrations/how-to-upgrade-hermione-to-6
125125
[screenshots-dir]: ../../config/browsers#screenshots_dir
126-
[save_history]: ../../config/browsers#save_history
126+
[save_history]: https://www.npmjs.com/package/hermione/v/6.1.4#savehistory
127127
[save_history_mode]: ../../config/browsers#save_history_mode
128128
[webdriverio@7]: https://webdriver.io/
129129
[webdriverio@8]: https://webdriver.io/

i18n/en/docusaurus-plugin-content-blog/component-testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ We chose the option of using Vite because this approach provides testing of the
3838

3939
### How to use?
4040

41-
Read more about it in our documentation <a href="/en/docs/v8/guides/component-testing">Component Testing</a>.
41+
Read more about it in our documentation <a href="/docs/v8/guides/component-testing">Component Testing</a>.
4242

4343
### Conclusion
4444

i18n/en/docusaurus-plugin-content-blog/vscode-extension.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Example of running tests from a text editor:
7474

7575
#### With the `devtools` settings
7676

77-
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>..
77+
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>..
7878

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

i18n/ru/docusaurus-plugin-content-docs/current/command-line/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ testplane --update-refs
189189
Рекомендуемый способ обновления эталонов - использование плагина [html-reporter][html-reporter].
190190
</Admonition>
191191

192-
## Inspect {#inspect}
192+
## Inspect {#testplane-inspect}
193193

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

@@ -204,13 +204,13 @@ testplane --inspect
204204

205205
## Inspect break {#inspect-brk}
206206

207-
То же самое, что и [Inspect](#inspect), но с точкой останова в начале.
207+
То же самое, что и [Inspect](#testplane-inspect), но с точкой останова в начале.
208208

209209
```bash
210210
testplane --inspect-brk
211211
```
212212

213-
## REPL {#repl}
213+
## REPL {#testplane-repl}
214214

215215
Включает [REPL](https://ru.wikipedia.org/wiki/REPL). Также отключает таймаут продолжительности теста. Может быть включен с помощью указания следующих CLI опций:
216216

i18n/ru/docusaurus-plugin-content-docs/current/guides/component-testing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Admonition from "@theme/Admonition";
44

55
## Введение
66

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

99
## Пример
1010

@@ -170,4 +170,4 @@ function Component() {
170170
[testplane-examples-component-testing]: https://github.com/gemini-testing/testplane/tree/master/examples/component-testing
171171
[testplane-global-hook]: https://github.com/gemini-testing/testplane-global-hook
172172
[vite-hmr]: https://vitejs.dev/guide/api-hmr.html
173-
[repl-mode]: ../command-line/index.mdx#repl
173+
[repl-mode]: ../command-line/index.mdx#testplane-repl

i18n/ru/docusaurus-plugin-content-docs/current/migrations/how-to-upgrade-hermione-to-5.mdx

Lines changed: 79 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,84 @@ import Admonition from "@theme/Admonition";
1616
Первое, на что стоит обратить внимание при переезде, — это изменение дефолтных значений некоторых опций в конфиге. Все изменения направлены на то, чтобы при базовой настройке hermione тесты проходили быстрее, а после прогона оставалось больше информации о тестах.
1717

1818
<table>
19-
<thead>
20-
<tr><td>**Параметр**</td><td>**Было**</td><td>**Стало**</td><td>**Описание**</td></tr>
21-
</thead>
22-
<tbody>
23-
<tr><td>[antialiasingTolerance][antialiasing-tolerance]</td><td>0</td><td>4</td><td>Задает чувствительность определения антиалиасинга, который будет игнорироваться при сравнении скриншотов.</td></tr>
24-
<tr><td>[compositeImage][composite-image]</td><td>false</td><td>true</td><td>Позволяет тестировать элементы, не влезающие во вьюпорт по высоте.</td></tr>
25-
<tr><td>[saveHistory][save-history]</td><td>false</td><td>true</td><td>Сохранять историю всех выполненных команд.</td></tr>
26-
<tr><td>[takeScreenshotOnFails.assertViewFail][take-screenshot-on-fails-assert-view-fail]</td><td>false</td><td>true</td><td>Определяет снимать ли скриншот страницы браузера _(Page Screenshot)_ при падении теста, а также при падении команды _assertView_.</td></tr>
27-
<tr><td>[takeScreenshotOnFailsMode][take-screenshot-on-fails-mode]</td><td>"viewport"</td><td>"fullpage"</td><td>Режим снятия скриншота при падении теста. Доступные значения: _viewport_ и _fullpage_.</td></tr>
28-
<tr><td>[takeScreenshotOnFailsTimeout][take-screenshot-on-fails-timeout]</td><td>90000</td><td>5000</td><td>Таймаут для снятия скриншота страницы браузера _(Page Screenshot)_ при падении теста, в мс.</td></tr>
29-
<tr><td>[httpTimeout][http-timeout]</td><td>90000</td><td>30000</td><td>Таймаут для любых запросов к Selenium-серверу, в мс.</td></tr>
30-
<tr><td>[pageLoadTimeout][page-load-timeout]</td><td>300000</td><td>20000</td><td>Таймаут для полной загрузки страницы, в мс.</td></tr>
31-
<tr><td>[sessionQuitTimeout][session-quit-timeout]</td><td>90000</td><td>5000</td><td>Таймаут для завершения сессии, в мс.</td></tr>
32-
33-
</tbody>
19+
<thead>
20+
<tr>
21+
<td>**Параметр**</td>
22+
<td>**Было**</td>
23+
<td>**Стало**</td>
24+
<td>**Описание**</td>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
<tr>
29+
<td>[antialiasingTolerance][antialiasing-tolerance]</td>
30+
<td>0</td>
31+
<td>4</td>
32+
<td>
33+
Задает чувствительность определения антиалиасинга, который будет игнорироваться при
34+
сравнении скриншотов.
35+
</td>
36+
</tr>
37+
<tr>
38+
<td>[compositeImage][composite-image]</td>
39+
<td>false</td>
40+
<td>true</td>
41+
<td>Позволяет тестировать элементы, не влезающие во вьюпорт по высоте.</td>
42+
</tr>
43+
<tr>
44+
<td>[saveHistory][save-history]</td>
45+
<td>false</td>
46+
<td>true</td>
47+
<td>Сохранять историю всех выполненных команд.</td>
48+
</tr>
49+
<tr>
50+
<td>
51+
[takeScreenshotOnFails.assertViewFail][take-screenshot-on-fails-assert-view-fail]
52+
</td>
53+
<td>false</td>
54+
<td>true</td>
55+
<td>
56+
Определяет снимать ли скриншот страницы браузера _(Page Screenshot)_ при падении
57+
теста, а также при падении команды _assertView_.
58+
</td>
59+
</tr>
60+
<tr>
61+
<td>[takeScreenshotOnFailsMode][take-screenshot-on-fails-mode]</td>
62+
<td>"viewport"</td>
63+
<td>"fullpage"</td>
64+
<td>
65+
Режим снятия скриншота при падении теста. Доступные значения: _viewport_ и
66+
_fullpage_.
67+
</td>
68+
</tr>
69+
<tr>
70+
<td>[takeScreenshotOnFailsTimeout][take-screenshot-on-fails-timeout]</td>
71+
<td>90000</td>
72+
<td>5000</td>
73+
<td>
74+
Таймаут для снятия скриншота страницы браузера _(Page Screenshot)_ при падении
75+
теста, в мс.
76+
</td>
77+
</tr>
78+
<tr>
79+
<td>[httpTimeout][http-timeout]</td>
80+
<td>90000</td>
81+
<td>30000</td>
82+
<td>Таймаут для любых запросов к Selenium-серверу, в мс.</td>
83+
</tr>
84+
<tr>
85+
<td>[pageLoadTimeout][page-load-timeout]</td>
86+
<td>300000</td>
87+
<td>20000</td>
88+
<td>Таймаут для полной загрузки страницы, в мс.</td>
89+
</tr>
90+
<tr>
91+
<td>[sessionQuitTimeout][session-quit-timeout]</td>
92+
<td>90000</td>
93+
<td>5000</td>
94+
<td>Таймаут для завершения сессии, в мс.</td>
95+
</tr>
96+
</tbody>
3497
</table>
3598

3699
Кроме этого, удалены опции `screenshotOnReject` и `screenshotOnRejectTimeout`, которые ранее были объявлены как устаревшие _(deprecated)_.
@@ -73,5 +136,5 @@ import Admonition from "@theme/Admonition";
73136
[http-timeout]: ../../config/browsers#http_timeout
74137
[page-load-timeout]: ../../config/browsers#page_load_timeout
75138
[session-quit-timeout]: ../../config/browsers#session_quit_timeout
76-
[save-history]: ../../config/browsers#save_history
139+
[save-history]: https://www.npmjs.com/package/hermione/v/5.6.4#savehistory
77140
[gh-issues]: https://github.com/gemini-testing/testplane/issues/

0 commit comments

Comments
 (0)