fix(web-test): восстановить синтетическую конфу + платформенная верификация

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) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-05-01 12:12:45 +03:00
parent f5e487096f
commit ffb0ee740d
2 changed files with 44 additions and 3 deletions
@@ -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: 'Контрагент' },
@@ -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',
},
},
];