mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-17 23:35:22 +03:00
test(form-edit): declare Поле1 in preRun form-compile attributes
add-element and add-group-with-fields built their baseline form with an InputField whose DataPath pointed to "Поле1", but "Поле1" was never declared as a form attribute. runner.mjs snapshot diffing accepted the output, but verify-snapshots caught the real XDTO error at load time: "Неверный путь к данным: Поле1". Add the missing attribute to both preRun form-compile inputs and regenerate snapshots (the new attribute takes id=5, so form-edit's added "Поле2" now lands at id=6). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e3069ceb36
commit
d1e770c843
@@ -14,7 +14,10 @@
|
|||||||
"script": "form-compile/scripts/form-compile",
|
"script": "form-compile/scripts/form-compile",
|
||||||
"input": {
|
"input": {
|
||||||
"title": "Тест",
|
"title": "Тест",
|
||||||
"attributes": [{ "name": "Объект", "type": "DataProcessorObject.Тест", "main": true }],
|
"attributes": [
|
||||||
|
{ "name": "Объект", "type": "DataProcessorObject.Тест", "main": true },
|
||||||
|
{ "name": "Поле1", "type": "string(100)" }
|
||||||
|
],
|
||||||
"elements": [
|
"elements": [
|
||||||
{ "input": "Поле1", "path": "Поле1", "title": "Поле 1" }
|
{ "input": "Поле1", "path": "Поле1", "title": "Поле 1" }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -14,7 +14,10 @@
|
|||||||
"script": "form-compile/scripts/form-compile",
|
"script": "form-compile/scripts/form-compile",
|
||||||
"input": {
|
"input": {
|
||||||
"title": "Группа",
|
"title": "Группа",
|
||||||
"attributes": [{ "name": "Объект", "type": "DataProcessorObject.Группа", "main": true }],
|
"attributes": [
|
||||||
|
{ "name": "Объект", "type": "DataProcessorObject.Группа", "main": true },
|
||||||
|
{ "name": "Поле1", "type": "string(100)" }
|
||||||
|
],
|
||||||
"elements": [
|
"elements": [
|
||||||
{ "input": "Поле1", "path": "Поле1", "title": "Существующее поле" }
|
{ "input": "Поле1", "path": "Поле1", "title": "Существующее поле" }
|
||||||
]
|
]
|
||||||
|
|||||||
+10
-1
@@ -41,7 +41,16 @@
|
|||||||
</Type>
|
</Type>
|
||||||
<MainAttribute>true</MainAttribute>
|
<MainAttribute>true</MainAttribute>
|
||||||
</Attribute>
|
</Attribute>
|
||||||
<Attribute name="Поле2" id="5">
|
<Attribute name="Поле1" id="5">
|
||||||
|
<Type>
|
||||||
|
<v8:Type>xs:string</v8:Type>
|
||||||
|
<v8:StringQualifiers>
|
||||||
|
<v8:Length>100</v8:Length>
|
||||||
|
<v8:AllowedLength>Variable</v8:AllowedLength>
|
||||||
|
</v8:StringQualifiers>
|
||||||
|
</Type>
|
||||||
|
</Attribute>
|
||||||
|
<Attribute name="Поле2" id="6">
|
||||||
<Type>
|
<Type>
|
||||||
<v8:Type>xs:string</v8:Type>
|
<v8:Type>xs:string</v8:Type>
|
||||||
<v8:StringQualifiers>
|
<v8:StringQualifiers>
|
||||||
|
|||||||
+11
-2
@@ -64,7 +64,16 @@
|
|||||||
</Type>
|
</Type>
|
||||||
<MainAttribute>true</MainAttribute>
|
<MainAttribute>true</MainAttribute>
|
||||||
</Attribute>
|
</Attribute>
|
||||||
<Attribute name="Поле2" id="5">
|
<Attribute name="Поле1" id="5">
|
||||||
|
<Type>
|
||||||
|
<v8:Type>xs:string</v8:Type>
|
||||||
|
<v8:StringQualifiers>
|
||||||
|
<v8:Length>100</v8:Length>
|
||||||
|
<v8:AllowedLength>Variable</v8:AllowedLength>
|
||||||
|
</v8:StringQualifiers>
|
||||||
|
</Type>
|
||||||
|
</Attribute>
|
||||||
|
<Attribute name="Поле2" id="6">
|
||||||
<Type>
|
<Type>
|
||||||
<v8:Type>xs:string</v8:Type>
|
<v8:Type>xs:string</v8:Type>
|
||||||
<v8:StringQualifiers>
|
<v8:StringQualifiers>
|
||||||
@@ -73,7 +82,7 @@
|
|||||||
</v8:StringQualifiers>
|
</v8:StringQualifiers>
|
||||||
</Type>
|
</Type>
|
||||||
</Attribute>
|
</Attribute>
|
||||||
<Attribute name="Поле3" id="6">
|
<Attribute name="Поле3" id="7">
|
||||||
<Type>
|
<Type>
|
||||||
<v8:Type>xs:decimal</v8:Type>
|
<v8:Type>xs:decimal</v8:Type>
|
||||||
<v8:NumberQualifiers>
|
<v8:NumberQualifiers>
|
||||||
|
|||||||
Reference in New Issue
Block a user