feat(web-test): M6-MVP follow-up — 13-misc setup + URL webtest-runner

13-misc.test.mjs: setup-шаг упрощён до `assert.ok(existsSync(epfPath))`.
EPF-сборку (epf-init → form-add → form-compile → epf-build) забрал
_hooks.mjs.prepare() — здесь только проверка артефакта с понятной
ошибкой при отсутствии: «запустите раннер с `-- --rebuild-epf`».

webtest.config.mjs: URL обоих контекстов переключён на
`/webtest-runner/ru_RU` — отдельная публикация автономного стенда,
не конфликтует с интерактивной разведкой через `/webtest` на 8081.
This commit is contained in:
Nick Shirokov
2026-05-12 20:25:54 +03:00
parent 5c734202b6
commit 96dad75b2f
2 changed files with 12 additions and 48 deletions
+6 -2
View File
@@ -1,10 +1,14 @@
// Default config for tests/web-test. CLI URL still overrides defaultContext URL.
// Two contexts pointing at the same webtest publication — represent two independent
// 1C sessions (different cookies), used by multi-context tests to simulate two users.
//
// AppName `webtest-runner` отличается от интерактивной публикации `webtest` на :8081 —
// автономный стенд (см. tests/web-test/_hooks.mjs) использует свой URL, чтобы не
// конфликтовать с ручной разведкой и работать поверх отдельного Apache на :9191.
export default {
contexts: {
a: { url: 'http://localhost:9191/webtest/ru_RU' },
b: { url: 'http://localhost:9191/webtest/ru_RU' },
a: { url: 'http://localhost:9191/webtest-runner/ru_RU' },
b: { url: 'http://localhost:9191/webtest-runner/ru_RU' },
},
defaultContext: 'a',
// isolation: 'tab' (default) — persistent context, tabs in one window, 1С extension loads.