docs: static accepter v2 - #140
Merged
Merged
Conversation
KuznetsovRoman
commented
Aug 26, 2026
Comment on lines
+74
to
+84
| Страница отчёта импортирует модуль во время выполнения, он не включается в сборку html-reporter. Импорт начинается при открытии диалога коммита, а финальная кнопка **Commit** остаётся выключенной, пока импорт не завершится успешно. По финальному клику модуль вызывается синхронно, чтобы браузер сохранил пользовательскую активацию (user activation), необходимую для всплывающего окна Static Accepter v2. | ||
|
|
||
| Всплывающее окно отвечает за подтверждение и все запросы к API Static Accepter. html-reporter не встраивает iframe, не открывает всплывающее окно самостоятельно, не отправляет протокольные сообщения, не разбивает коммиты и не вызывает эндпоинты Static Accepter `/_api/v2/*`. Пока операция выполняется, отчёт показывает прогресс скачивания, создания коммита, подтверждения и отправки, а набор выбранных изображений остаётся неизменным. Результаты `submitted` и `suggested` помечают выбранные изображения как принятые; отмена или ошибка оставляет их выбранными для повторной попытки. | ||
|
|
||
| Перед публикацией отчёта с v2 проверьте следующие требования к интеграции с браузером: | ||
|
|
||
| - В Static Accepter разрешён точный источник (origin) отчёта. | ||
| - CSP отчёта разрешает источник `moduleUrl` в `script-src`, а источники скриншотов — в `connect-src`. | ||
| - Серверы скриншотов возвращают CORS-заголовки, разрешающие origin отчёта. | ||
| - Для отчёта не задан `Cross-Origin-Opener-Policy: same-origin`, потому что протокол всплывающего окна Static Accepter использует `window.opener`. | ||
| - Ревьюеры аутентифицированы в Static Accepter, имеют доступ к pull request'у и разрешили всплывающие окна для origin отчёта. |
Member
Author
There was a problem hiding this comment.
Added more info about integration, so user could see, what is required in order to build his own accepter service with accepter module
✅ Successfully deployed static |
KuznetsovRoman
force-pushed
the
TESTPLANE-697.docs
branch
from
August 26, 2026 15:19
d5cb64d to
7677a5e
Compare
KuznetsovRoman
force-pushed
the
TESTPLANE-697.docs
branch
from
August 28, 2026 13:30
7677a5e to
6b4a728
Compare
sonic16x
approved these changes
Aug 28, 2026
KuznetsovRoman
force-pushed
the
TESTPLANE-697.docs
branch
from
September 1, 2026 14:44
6b4a728 to
06658d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.