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', + }, + }, +];