From ffb0ee740dfafa64abd75832b00d7a049110221b Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Fri, 1 May 2026 12:12:45 +0300 Subject: [PATCH] =?UTF-8?q?fix(web-test):=20=D0=B2=D0=BE=D1=81=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D1=8C=20=D1=81=D0=B8=D0=BD?= =?UTF-8?q?=D1=82=D0=B5=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D1=83=D1=8E=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=84=D1=83=20+=20=D0=BF=D0=BB=D0=B0=D1=82?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B5=D0=BD=D0=BD=D0=B0=D1=8F=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D0=B8=D1=84=D0=B8=D0=BA=D0=B0=D1=86=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build-webtest-config упал после ужесточения form-compile (запрет runtime-типа FormDataStructure для главного реквизита). Перевёл типы на конкретные CatalogObject.X / DocumentObject.X без cfg:-префикса. Добавил platform-webtest-config.test.mjs — переиспользует шаги сборки и в хвосте делает db-create + db-load-xml + db-update. Зелёный, 24 шага. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../integration/build-webtest-config.test.mjs | 6 +-- .../platform-webtest-config.test.mjs | 41 +++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 tests/skills/integration/platform-webtest-config.test.mjs diff --git a/tests/skills/integration/build-webtest-config.test.mjs b/tests/skills/integration/build-webtest-config.test.mjs index 2d462afe..c069f40f 100644 --- a/tests/skills/integration/build-webtest-config.test.mjs +++ b/tests/skills/integration/build-webtest-config.test.mjs @@ -163,7 +163,7 @@ export const steps = [ input: { title: 'Контрагент', attributes: [ - { name: 'Объект', type: 'FormDataStructure', main: true }, + { name: 'Объект', type: 'CatalogObject.Контрагенты', main: true }, ], elements: [ { input: 'Наименование', path: 'Объект.Description', title: 'Наименование' }, @@ -188,7 +188,7 @@ export const steps = [ input: { title: 'Номенклатура', attributes: [ - { name: 'Объект', type: 'FormDataStructure', main: true }, + { name: 'Объект', type: 'CatalogObject.Номенклатура', main: true }, ], elements: [ { pages: 'Страницы', children: [ @@ -222,7 +222,7 @@ export const steps = [ input: { title: 'Приходная накладная', attributes: [ - { name: 'Объект', type: 'FormDataStructure', main: true }, + { name: 'Объект', type: 'DocumentObject.ПриходнаяНакладная', main: true }, ], elements: [ { input: 'Контрагент', path: 'Объект.Контрагент', title: 'Контрагент' }, diff --git a/tests/skills/integration/platform-webtest-config.test.mjs b/tests/skills/integration/platform-webtest-config.test.mjs new file mode 100644 index 00000000..9297abaa --- /dev/null +++ b/tests/skills/integration/platform-webtest-config.test.mjs @@ -0,0 +1,41 @@ +// platform-webtest-config.test.mjs — Platform verification of synthetic web-test config +// Reuses the build steps from build-webtest-config and adds db-create/load/update tail. +// Goal: confirm that the synthetic configuration is actually accepted by the 1C platform. + +import { steps as buildSteps } from './build-webtest-config.test.mjs'; + +export const name = 'Загрузка синтетической конфигурации web-test в платформу'; +export const setup = 'none'; +export const cache = 'webtest-config-platform'; +export const requiresPlatform = true; + +export const steps = [ + ...buildSteps, + + // ── Platform load ── + { + name: 'db-create: создание файловой ИБ', + script: 'db-create/scripts/db-create', + args: { + '-V8Path': '{v8path}', + '-InfoBasePath': '{workDir}/testdb', + }, + }, + { + name: 'db-load-xml: загрузка конфигурации', + script: 'db-load-xml/scripts/db-load-xml', + args: { + '-V8Path': '{v8path}', + '-InfoBasePath': '{workDir}/testdb', + '-ConfigDir': '{workDir}', + }, + }, + { + name: 'db-update: обновление БД', + script: 'db-update/scripts/db-update', + args: { + '-V8Path': '{v8path}', + '-InfoBasePath': '{workDir}/testdb', + }, + }, +];