Skip to content

Commit 10e41bc

Browse files
committed
docs: update time travel guide with new package versions
1 parent ece17a9 commit 10e41bc

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

docs/guides/time-travel.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ The Time Travel mode is a new Testplane UI tool that allows you to observe test
1919
recommend waiting for the stable version.
2020
</Admonition>
2121

22-
1. Install the alpha versions of `testplane` and `html-reporter`:
22+
1. Install a fresh versions of `testplane` and `html-reporter`:
2323

2424
```shell
25-
npm i -D testplane@8.26.0 [email protected].0
25+
npm i -D testplane@8.27.1 [email protected].2
2626
```
2727

2828
2. Enable snapshot recording in the Testplane config:
2929

3030
```typescript
3131
export = {
3232
/* ... */
33-
record: "on",
33+
record: "on", // You can also use "last-failed-run", "retries-only", "off"
3434
};
3535
```
3636

@@ -54,10 +54,13 @@ To debug the layout, you can use the browser's DevTools. All selectors and attri
5454

5555
## Configuring Time Travel
5656

57-
Currently, snapshot recording is controlled via the `record` option in the Testplane config. It supports two values: `"on"` (snapshots will be recorded for every test run) and `"off"` (snapshots are completely disabled).
57+
Currently, snapshot recording is controlled via the `record` option in the Testplane config. It supports the following values:
58+
59+
- `"on"` - snapshots will be recorded for every test run
60+
- `"last-failed-run"` - snapshots will be saved only for the last failed run
61+
- `"retries-only"` - snapshots will be recorded only for the retries
62+
- `"off"` - snapshots are completely disabled
5863

5964
<Admonition type="info">
60-
In the near future, smarter recording modes will be available, such as "only on failure" or
61-
"enabled during retries." Additionally, network request debugging and full-screen mode will soon
62-
be available.
65+
In the near future, network request debugging and full-screen mode will soon be available.
6366
</Admonition>

i18n/ru/docusaurus-plugin-content-docs/current/guides/time-travel.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ import Admonition from "@theme/Admonition";
1919
использования в production рекомендуем дождаться stable версии.
2020
</Admonition>
2121

22-
1. Необходимо установить alpha-версии `testplane` и `html-reporter`:
22+
1. Необходимо установить свежие версии `testplane` и `html-reporter`:
2323

2424
```shell
25-
npm i -D testplane@8.26.0 [email protected].0
25+
npm i -D testplane@8.27.1 [email protected].2
2626
```
2727

2828
2. Включить запись снапшотов в конфиге testplane:
2929

3030
```typescript
3131
export = {
3232
/* ... */
33-
record: "on",
33+
record: "on", // Также поддерживаются "last-failed-run", "retries-only", "off"
3434
};
3535
```
3636

@@ -54,10 +54,13 @@ import Admonition from "@theme/Admonition";
5454

5555
## Настройка Time Travel
5656

57-
В данный момент всё управление записью снапшотов происходит с помощью опции `record` в конфиге Testplane. Поддержано 2 значения: `"on"` (снапшоты будут записываться на каждый запуск теста) и `"off"` (снапшоты полностью отключены).
57+
В данный момент всё управление записью снапшотов происходит с помощью опции `record` в конфиге Testplane. Поддерживаются следующие значения:
58+
59+
- `"on"` - снапшоты будут записываться на каждый запуск теста
60+
- `"last-failed-run"` - снапшоты будут сохраняться только для последнего запуска теста с ошибкой
61+
- `"retries-only"` - снапшоты будут записываться только для ретраев
62+
- `"off"` - снапшоты полностью отключены
5863

5964
<Admonition type="info">
60-
В самом ближайшем будущем появятся более умные режимы записи снапшотов, такие, как "только при
61-
падении" или "включить при ретраях". Помимо этого скоро станет доступна отладка сетевых запросов
62-
и полноэкранный режим.
65+
В самом ближайшем будущем станет доступна отладка сетевых запросов и полноэкранный режим.
6366
</Admonition>

0 commit comments

Comments
 (0)