Skip to content

Commit 76f8d26

Browse files
author
rocketraccoon
committed
feat(testplane): add version
1 parent 92087ad commit 76f8d26

File tree

10 files changed

+48
-16
lines changed

10 files changed

+48
-16
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_Available from testplane v{props.version}_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_Доступно начиная с testplane v{props.version}_

docs/commands/browser/restoreState.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import Admonition from "@theme/Admonition";
2+
import Version from "../../_partials/specs/version-en.mdx";
23

34
# restoreState
45

6+
<Version version="8.33.0" />
7+
58
## Overview {#overview}
69

710
Browser command that restores session state (cookies, local and session storages) from a file or variable.
@@ -59,19 +62,19 @@ await browser.restoreState({
5962
<td>cookies</td>
6063
<td>`boolean`</td>
6164
<td>`true`</td>
62-
<td>Enable restore cookies (true by default).</td>
65+
<td>Enable restore cookies.</td>
6366
</tr>
6467
<tr>
6568
<td>localStorage</td>
6669
<td>`boolean`</td>
6770
<td>`true`</td>
68-
<td>Enable restore localStorage (true by default).</td>
71+
<td>Enable restore localStorage.</td>
6972
</tr>
7073
<tr>
7174
<td>sessionStorage</td>
7275
<td>`boolean`</td>
7376
<td>`true`</td>
74-
<td>Enable restore sessionStorage (true by default).</td>
77+
<td>Enable restore sessionStorage.</td>
7578
</tr>
7679
<tr>
7780
<td>cookieFilter</td>

docs/commands/browser/saveState.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import Version from "../../_partials/specs/version-en.mdx";
2+
13
# saveState
24

5+
<Version version="8.33.0" />
6+
37
## Overview {#overview}
48

59
Browser command that saves session state (cookies, local and session storages).
@@ -45,19 +49,19 @@ const stateDump: SaveStateData = await browser.saveState({
4549
<td>cookies</td>
4650
<td>`boolean`</td>
4751
<td>`true`</td>
48-
<td>Enable save cookies (true by default).</td>
52+
<td>Enable save cookies.</td>
4953
</tr>
5054
<tr>
5155
<td>localStorage</td>
5256
<td>`boolean`</td>
5357
<td>`true`</td>
54-
<td>Enable save localStorage (true by default).</td>
58+
<td>Enable save localStorage.</td>
5559
</tr>
5660
<tr>
5761
<td>sessionStorage</td>
5862
<td>`boolean`</td>
5963
<td>`true`</td>
60-
<td>Enable save sessionStorage (true by default).</td>
64+
<td>Enable save sessionStorage.</td>
6165
</tr>
6266
<tr>
6367
<td>cookieFilter</td>

docs/config/after-all.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import Version from "../_partials/specs/version-en.mdx";
2+
13
# afterAll
24

5+
<Version version="8.33.0" />
6+
37
## Overview {#overview}
48

59
This parameter is a hook. The function specified for this parameter will be automatically called after tests are completed.
610

7-
The context of the function is the Testplane config. Also function receive config in arguments.
11+
The context of the function is the Testplane config. Function receives config in arguments.
812

913
## Usage Example {#example}
1014

docs/config/before-all.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import Version from "../_partials/specs/version-en.mdx";
2+
13
# beforeAll
24

5+
<Version version="8.33.0" />
6+
37
## Overview {#overview}
48

59
This parameter is a hook. The function specified for this parameter will be automatically called before tests running.
610

7-
The context of the function is the Testplane config. Also function receive config in arguments.
11+
The context of the function is the Testplane config. Also function receives config in arguments.
812

913
## Usage Example {#example}
1014

i18n/ru/docusaurus-plugin-content-docs/current/commands/browser/restoreState.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import Admonition from "@theme/Admonition";
2+
import Version from "../../_partials/specs/version-ru.mdx";
23

34
# restoreState
45

6+
<Version version="8.33.0" />
7+
58
## Обзор {#overview}
69

710
Команда для восстановления данных (cookies, local and session storages) из файла или объекта.
@@ -59,19 +62,19 @@ await browser.restoreState({
5962
<td>cookies</td>
6063
<td>`boolean`</td>
6164
<td>`true`</td>
62-
<td>Включить восстановление кук (true по умолчанию).</td>
65+
<td>Включить восстановление кук.</td>
6366
</tr>
6467
<tr>
6568
<td>localStorage</td>
6669
<td>`boolean`</td>
6770
<td>`true`</td>
68-
<td>Включить восстановление localStorage (true по умолчанию).</td>
71+
<td>Включить восстановление localStorage.</td>
6972
</tr>
7073
<tr>
7174
<td>sessionStorage</td>
7275
<td>`boolean`</td>
7376
<td>`true`</td>
74-
<td>Включить восстановление sessionStorage (true по умолчанию).</td>
77+
<td>Включить восстановление sessionStorage.</td>
7578
</tr>
7679
<tr>
7780
<td>cookieFilter</td>

i18n/ru/docusaurus-plugin-content-docs/current/commands/browser/saveState.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import Version from "../../_partials/specs/version-ru.mdx";
2+
13
# saveState
24

5+
<Version version="8.33.0" />
6+
37
## Обзор {#overview}
48

59
Команда для сохранения состояния страницы (cookies, local и session storages).
@@ -45,19 +49,19 @@ const stateDump: SaveStateData = await browser.saveState({
4549
<td>cookies</td>
4650
<td>`boolean`</td>
4751
<td>`екгу`</td>
48-
<td>Включить сохранение кук (true по умолчанию).</td>
52+
<td>Включить сохранение кук.</td>
4953
</tr>
5054
<tr>
5155
<td>localStorage</td>
5256
<td>`boolean`</td>
5357
<td>`екгу`</td>
54-
<td>Включить сохранение localStorage (true по умолчанию).</td>
58+
<td>Включить сохранение localStorage.</td>
5559
</tr>
5660
<tr>
5761
<td>sessionStorage</td>
5862
<td>`boolean`</td>
5963
<td>`екгу`</td>
60-
<td>Включить сохранение sessionStorage (true по умолчанию).</td>
64+
<td>Включить сохранение sessionStorage.</td>
6165
</tr>
6266
<tr>
6367
<td>cookieFilter</td>

i18n/ru/docusaurus-plugin-content-docs/current/config/after-all.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import Version from "../_partials/specs/version-ru.mdx";
2+
13
# afterAll
24

5+
<Version version="8.33.0" />
6+
37
## Обзор {#overview}
48

59
Данный параметр является хуком. Функция, заданная для данного параметра, будет автоматически вызвана после прохождения тестов.
610

7-
Контекстом функции является конфиг Testplane. Так же функция принимает конфиг в аргументе.
11+
Контекстом функции является конфиг Testplane. Также функция принимает конфиг в аргументе.
812

913
## Пример использования {#example}
1014

i18n/ru/docusaurus-plugin-content-docs/current/config/before-all.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import Version from "../_partials/specs/version-ru.mdx";
2+
13
# beforeAll
24

5+
<Version version="8.33.0" />
6+
37
## Обзор {#overview}
48

59
Данный параметр является хуком. Функция, заданная для данного параметра, будет автоматически вызвана до запуска тестов.
610

7-
Контекстом функции является конфиг Testplane. Так же функция принимает конфиг в аргументе.
11+
Контекстом функции является конфиг Testplane. Также функция принимает конфиг в аргументе.
812

913
## Пример использования {#example}
1014

0 commit comments

Comments
 (0)