mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-11 08:24:57 +03:00
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:
@@ -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',
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user