You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Enable snapshot recording in the Testplane config:
29
29
30
30
```typescript
31
31
export= {
32
32
/* ... */
33
-
record: "on",
33
+
record: "on",// You can also use "last-failed-run", "retries-only", "off"
34
34
};
35
35
```
36
36
@@ -54,10 +54,13 @@ To debug the layout, you can use the browser's DevTools. All selectors and attri
54
54
55
55
## Configuring Time Travel
56
56
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
58
63
59
64
<Admonitiontype="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.
record: "on",// Также поддерживаются "last-failed-run", "retries-only", "off"
34
34
};
35
35
```
36
36
@@ -54,10 +54,13 @@ import Admonition from "@theme/Admonition";
54
54
55
55
## Настройка Time Travel
56
56
57
-
В данный момент всё управление записью снапшотов происходит с помощью опции `record` в конфиге Testplane. Поддержано 2 значения: `"on"` (снапшоты будут записываться на каждый запуск теста) и `"off"` (снапшоты полностью отключены).
57
+
В данный момент всё управление записью снапшотов происходит с помощью опции `record` в конфиге Testplane. Поддерживаются следующие значения:
58
+
59
+
-`"on"` - снапшоты будут записываться на каждый запуск теста
60
+
-`"last-failed-run"` - снапшоты будут сохраняться только для последнего запуска теста с ошибкой
61
+
-`"retries-only"` - снапшоты будут записываться только для ретраев
62
+
-`"off"` - снапшоты полностью отключены
58
63
59
64
<Admonitiontype="info">
60
-
В самом ближайшем будущем появятся более умные режимы записи снапшотов, такие, как "только при
61
-
падении" или "включить при ретраях". Помимо этого скоро станет доступна отладка сетевых запросов
62
-
и полноэкранный режим.
65
+
В самом ближайшем будущем станет доступна отладка сетевых запросов и полноэкранный режим.
0 commit comments