feat(skill-tests): add form-add + form-compile steps to platform integration tests

Now that ExtendedPresentation and InterfaceCompatibilityMode bugs are fixed,
platform integration tests can include full form generation:
- platform-config: form-add + form-compile for Catalog and Document forms
- platform-epf: epf-add-form + form-compile with elements/attributes/commands
- platform-cfe: form-add + form-compile for borrowed Catalog form

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-29 19:17:25 +03:00
co-authored by Claude Opus 4.6
parent 72bad1aaaa
commit 70e684d189
3 changed files with 94 additions and 6 deletions
@@ -1,6 +1,6 @@
// platform-config.test.mjs — Integration test: load config into 1C platform
// Requires: 1C platform (1cv8.exe) via .v8-project.json
// Steps: cf-init → meta-compile (objects without forms) → cf-edit → db-create → db-load-xml → db-update
// Steps: cf-init → meta-compile → form-add → form-compile → cf-edit → db-create → db-load-xml → db-update
export const name = 'Загрузка конфигурации в платформу 1С';
export const setup = 'none';
@@ -34,6 +34,45 @@ export const steps = [
input: { type: 'Enum', name: 'Статусы', values: ['Новый', 'Выполнен'] },
args: { '-JsonPath': '{inputFile}', '-OutputDir': '{workDir}/config' },
},
{
name: 'form-add: форма элемента справочника',
script: 'form-add/scripts/form-add',
args: {
'-ObjectPath': '{workDir}/config/Catalogs/Товары',
'-FormName': 'ФормаЭлемента',
'-Purpose': 'Object',
},
},
{
name: 'form-compile: наполнение формы справочника',
script: 'form-compile/scripts/form-compile',
input: {
elements: [
{ id: 'Код', type: 'input', path: 'Object.Code', title: 'Код' },
{ id: 'Наименование', type: 'input', path: 'Object.Description', title: 'Наименование' },
],
},
args: { '-FormPath': '{workDir}/config/Catalogs/Товары/Forms/ФормаЭлемента', '-JsonPath': '{inputFile}' },
},
{
name: 'form-add: форма документа',
script: 'form-add/scripts/form-add',
args: {
'-ObjectPath': '{workDir}/config/Documents/Приход',
'-FormName': 'ФормаДокумента',
'-Purpose': 'Object',
},
},
{
name: 'form-compile: наполнение формы документа',
script: 'form-compile/scripts/form-compile',
input: {
elements: [
{ id: 'Склад', type: 'input', path: 'Object.Склад', title: 'Склад' },
],
},
args: { '-FormPath': '{workDir}/config/Documents/Приход/Forms/ФормаДокумента', '-JsonPath': '{inputFile}' },
},
{
name: 'cf-edit: регистрация объектов',
script: 'cf-edit/scripts/cf-edit',