Skip to content

Commit

Permalink
docs: add info about 'auto' metaInfoBaseUrls value
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Aug 1, 2024
1 parent 28ddc84 commit 346fdbc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/en/html-reporter-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,17 @@ For example:
}
```

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.

For example, if you have the following `metaInfoBaseUrls` value:
```javascript
{ custom_url: 'auto' }
```

And set `meta.custom_url` field to `https://example.com/some/path` in your tests, you'll see in meta:
- A link to `https://example.com/some/path` when base host is not set in the UI
- A link to `https://another-host.com/some/path` when base host in the UI is set to 'https://another-host.com'

### saveFormat

**DEPRECATED**
Expand Down
12 changes: 12 additions & 0 deletions docs/ru/html-reporter-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,18 @@ throw err;
}
```

Когда значение любого ключа установлено на `auto`, базовый URL будет установлен на базовый хост, указанный в интерфейсе отчета, или останется неизменным, если базовый хост не указан.

Например, если у вас есть следующее значение `metaInfoBaseUrls`:

```javascript
{ custom_url: 'auto' }
```

И вы установите поле `meta.custom_url` в `https://example.com/some/path` в ваших тестах, вы увидите в мете:
- Ссылку на `https://example.com/some/path`, если базовый хост не установлен в интерфейсе пользователя
- Ссылку на `https://another-host.com/some/path`, если базовый хост в интерфейсе пользователя установлен в `https://another-host.com`

### saveFormat

**Параметр устарел**
Expand Down

0 comments on commit 346fdbc

Please sign in to comment.