Skip to content

Commit 346fdbc

Browse files
committed
docs: add info about 'auto' metaInfoBaseUrls value
1 parent 28ddc84 commit 346fdbc

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/en/html-reporter-setup.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,17 @@ For example:
250250
}
251251
```
252252

253+
When value of any key is set to `auto`, the base url will be set base host specified in the UI or kept intact if there base host isn't specified.
254+
255+
For example, if you have the following `metaInfoBaseUrls` value:
256+
```javascript
257+
{ custom_url: 'auto' }
258+
```
259+
260+
And set `meta.custom_url` field to `https://example.com/some/path` in your tests, you'll see in meta:
261+
- A link to `https://example.com/some/path` when base host is not set in the UI
262+
- A link to `https://another-host.com/some/path` when base host in the UI is set to 'https://another-host.com'
263+
253264
### saveFormat
254265

255266
**DEPRECATED**

docs/ru/html-reporter-setup.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,18 @@ throw err;
250250
}
251251
```
252252

253+
Когда значение любого ключа установлено на `auto`, базовый URL будет установлен на базовый хост, указанный в интерфейсе отчета, или останется неизменным, если базовый хост не указан.
254+
255+
Например, если у вас есть следующее значение `metaInfoBaseUrls`:
256+
257+
```javascript
258+
{ custom_url: 'auto' }
259+
```
260+
261+
И вы установите поле `meta.custom_url` в `https://example.com/some/path` в ваших тестах, вы увидите в мете:
262+
- Ссылку на `https://example.com/some/path`, если базовый хост не установлен в интерфейсе пользователя
263+
- Ссылку на `https://another-host.com/some/path`, если базовый хост в интерфейсе пользователя установлен в `https://another-host.com`
264+
253265
### saveFormat
254266

255267
**Параметр устарел**

0 commit comments

Comments
 (0)