enhance AutoField and QodexActionExec components with metadata support and default response handling #387
pull-request.yml
on: pull_request
PullRequestTests
12m 34s
Annotations
4 errors and 2 warnings
src/stories/Fields/Options/Options.stories.tsx > Basic:
src/stories/Fields/Options/Options.stories.tsx#L335
AssertionError:
Click to debug the error directly in Storybook: http://localhost:6006/?path=/story/fields-options--basic&addonPanel=storybook/test/panel
expected last "onChange" call to have been called with [ undefined, ObjectContaining{…}, {} ]
- Expected
+ Received
Array [
undefined,
- ObjectContaining {
- "optionWithAutoSelect": Object {
- "type": "string",
- "value": "allowed-1",
- },
- "optionWithInvalidValue": Object {
- "type": "string",
- "value": 123,
- },
- "optionWithValue": Object {
- "type": "string",
- "value": "123",
+ Object {
+ "basicOption": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "colorOption": Object {
+ "type": "rgbcolor",
+ "value": Object {
+ "a": 1,
+ "b": 0,
+ "g": 0,
+ "r": 255,
+ },
+ },
+ "disabledOption": Object {
+ "type": "number",
+ "value": undefined,
+ },
+ "optionWithAllowedValuesCreatable": Object {
+ "type": "number",
+ "value": undefined,
+ },
+ "optionWithAutoSelect": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithBrokenAllowedValues": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithDefaultValue": Object {
+ "type": "string",
+ "value": "default",
+ },
+ "optionWithDependents": Object {
+ "type": "date",
+ "value": undefined,
+ },
+ "optionWithDescription": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithInvalidValue": Object {
+ "type": "string",
+ "value": 123,
+ },
+ "optionWithMessages": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithShortDescription": Object {
+ "type": "list",
+ "value": undefined,
+ },
+ "optionWithValue": Object {
+ "type": "string",
+ "value": "123",
+ },
+ "preselectedOption": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "readOnlyOption": Object {
+ "type": "number",
+ "value": 123,
+ },
+ "readOnlyOptionWithValue": Object {
+ "type": "number",
+ "value": 456,
+ },
+ "richTextOption": Object {
+ "type": "richtext",
+ "value": Array [
+ Object {
+ "children": Array [
+ Object {
+ "text": "This is a rich text option ",
+ },
+ Object {
+ "children": Array [
+ Object {
+ "text": "",
+ },
+ ],
+ "label": "Day End",
+ "type": "tag",
+ "value": "$timestamp:next_midnight",
+ },
+ Object {
+ "text": "",
+ },
+ ],
+ "type": "paragraph",
+ },
+ ],
+ },
+ "schemaOption": Object {
+ "type": "hash",
+ "value": Object {
+ "optionWithAutoSelect": Object {
+ "type": "richtext",
+ "value": "allowed-1",
+ },
+ "schemaOption1": Object {
+ "is_expression": undefined,
+ "type": "richtext",
+ "value": undefined,
+ },
+ "schemaOption2": Object {
+ "is_expression": undefined,
+ "type": "hash",
+ "value": Object {
+ "schemaOption3": Object {
+ "is_expression": undefined,
+ "type": "string",
+ "value": "test",
+ },
+ },
+ },
+ },
},
"selectedOption": Object {
"type": "hash",
"value": "option1: value1
option2:
option3: value3
option4:
- value4
- value5
",
},
"templateOption": Object {
"type": "string",
"value": "$local:test",
},
},
Object {},
]
❯ play src/stories/Fields/Options/Options.stories.tsx:335:37
❯ ../../../../../node_modules/.vite/dep
|
src/stories/Fields/Options/Options.stories.tsx > With Saving Allowed:
src/stories/Fields/Options/Options.stories.tsx#L335
AssertionError:
Click to debug the error directly in Storybook: http://localhost:6006/?path=/story/fields-options--with-saving-allowed&addonPanel=storybook/test/panel
expected last "onChange" call to have been called with [ undefined, ObjectContaining{…}, {} ]
- Expected
+ Received
Array [
undefined,
- ObjectContaining {
- "optionWithAutoSelect": Object {
- "type": "string",
- "value": "allowed-1",
- },
- "optionWithInvalidValue": Object {
- "type": "string",
- "value": 123,
- },
- "optionWithValue": Object {
- "type": "string",
- "value": "123",
+ Object {
+ "basicOption": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "colorOption": Object {
+ "type": "rgbcolor",
+ "value": Object {
+ "a": 1,
+ "b": 0,
+ "g": 0,
+ "r": 255,
+ },
+ },
+ "disabledOption": Object {
+ "type": "number",
+ "value": undefined,
+ },
+ "optionWithAllowedValuesCreatable": Object {
+ "type": "number",
+ "value": undefined,
+ },
+ "optionWithAutoSelect": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithBrokenAllowedValues": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithDefaultValue": Object {
+ "type": "string",
+ "value": "default",
+ },
+ "optionWithDependents": Object {
+ "type": "date",
+ "value": undefined,
+ },
+ "optionWithDescription": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithInvalidValue": Object {
+ "type": "string",
+ "value": 123,
+ },
+ "optionWithMessages": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "optionWithShortDescription": Object {
+ "type": "list",
+ "value": undefined,
+ },
+ "optionWithValue": Object {
+ "type": "string",
+ "value": "123",
+ },
+ "preselectedOption": Object {
+ "type": "string",
+ "value": undefined,
+ },
+ "readOnlyOption": Object {
+ "type": "number",
+ "value": 123,
+ },
+ "readOnlyOptionWithValue": Object {
+ "type": "number",
+ "value": 456,
+ },
+ "richTextOption": Object {
+ "type": "richtext",
+ "value": Array [
+ Object {
+ "children": Array [
+ Object {
+ "text": "This is a rich text option ",
+ },
+ Object {
+ "children": Array [
+ Object {
+ "text": "",
+ },
+ ],
+ "label": "Day End",
+ "type": "tag",
+ "value": "$timestamp:next_midnight",
+ },
+ Object {
+ "text": "",
+ },
+ ],
+ "type": "paragraph",
+ },
+ ],
+ },
+ "schemaOption": Object {
+ "type": "hash",
+ "value": Object {
+ "optionWithAutoSelect": Object {
+ "type": "richtext",
+ "value": "allowed-1",
+ },
+ "schemaOption1": Object {
+ "is_expression": undefined,
+ "type": "richtext",
+ "value": undefined,
+ },
+ "schemaOption2": Object {
+ "is_expression": undefined,
+ "type": "hash",
+ "value": Object {
+ "schemaOption3": Object {
+ "is_expression": undefined,
+ "type": "string",
+ "value": "test",
+ },
+ },
+ },
+ },
},
"selectedOption": Object {
"type": "hash",
"value": "option1: value1
option2:
option3: value3
option4:
- value4
- value5
",
},
"templateOption": Object {
"type": "string",
"value": "$local:test",
},
},
Object {},
]
❯ play src/stories/Fields/Options/Options.stories.tsx:335:37
❯ ../../../../../node_mod
|
src/stories/Tests/FSM/Regressions.stories.tsx > Sub Expression Can Be Added In If State:
src/stories/Components/ExpressionBuilder.stories.tsx#L339
AssertionError:
Click to debug the error directly in Storybook: http://localhost:6006/?path=/story/tests-fsm-regression-tests--sub-expression-can-be-added-in-if-state&addonPanel=storybook/test/panel
expected to have a length of 1 but got +0
Ignored nodes: comments, script, style
<html
lang="en"
>
<head>
<meta
charset="UTF-8"
/>
<link
href="/__vitest__/favicon.svg"
rel="icon"
type="image/svg+xml"
/>
<meta
content="width=device-width, initial-scale=1.0"
name="viewport"
/>
<title>
Vitest Browser Tester
</title>
<link
crossorigin=""
href="/__vitest_browser__/utils-CUwLt_eT.js"
rel="modulepreload"
/>
</head>
<body>
<div>
<div
class="sc-fmZqYP bvHefd reqore-layout-wrapper"
>
<div
class="sc-gJqSRm bvhRJv reqore-layout-content"
>
<div
class="sc-dwnOUR dtBifG reqore-content"
style="padding: 20px; display: flex; flex-flow: column;"
>
<div
class="sc-bcXHqe sc-jfTVlA eOvaff iTXcme reqore-panel"
>
<div
class="sc-gScZFl sc-lbVpMG jOcBLB hCDseW reqore-panel-title"
opacity="0"
>
<div
class="sc-cOxWqc kzpIpJ"
>
<div
class="sc-AHaJN idrChp"
>
<div
class="sc-khsqcC jnSTOU"
>
<div
class="sc-hTBuwn ggNQIA"
>
<h3
class="sc-bcXHqe sc-gswNZR sc-bjfHbI eOvaff fVPbZd iRyCen reqore-label-editor reqore-heading reqore-label-editor reqore-heading"
style="display: inline-flex; align-items: center; min-width: 0px;"
>
<span
class="sc-bcXHqe sc-gswNZR sc-bCfvAP eLXtiS fVPbZd foSdEh reqore-span reqore-span"
>
Untitled Qog
</span>
<span
class="sc-bcXHqe sc-dkrFOg eOvaff wNqTk reqore-icon"
style="width: 17px; height: 17px;"
>
<svg
fill="currentColor"
height="17"
stroke="currentColor"
stroke-width="0"
style="color: inherit; vertical-align: super;"
viewBox="0 0 24 24"
width="17"
xmlns="http://www.w3.org/2000/svg"
>
<g>
<path
d="M0 0h24v24H0z"
fill="none"
/>
<path
d="M6.414 16L16.556 5.858l-1.414-1.414L5 14.586V16h1.414zm.829 2H3v-4.243L14.435 2.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 18zM3 20h18v2H3v-2z"
/>
</g>
</svg>
</span>
</h3>
</div>
</div>
</div>
</div>
<div
class="sc-bcXHqe sc-dIfARi eOvaff bUZydX reqore-control-group"
>
<div
class="sc-bcXHqe sc-dIfARi eOvaff gFZOtK reqore-control-group"
>
<button
class="sc-bcXHqe sc-fnGiBr eOvaff apZ
|
PullRequestTests
Process completed with exit code 1.
|
PullRequestTests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
PullRequestTests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|