mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-10 21:43:21 +03:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user