PromucFlow_constructor/app/client/cypress/fixtures/Mapdsl.json

221 lines
6.5 KiB
JSON
Raw Normal View History

2020-05-01 07:48:33 +00:00
{
2020-05-19 06:13:15 +00:00
"dsl": {
2020-05-08 06:38:43 +00:00
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1224,
"snapColumns": 16,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0,
"bottomRow": 1292,
"containerStyle": "none",
"snapRows": 33,
"parentRowSpace": 1,
"type": "CANVAS_WIDGET",
"canExtend": true,
"dynamicBindingPathList": [],
2020-05-08 06:38:43 +00:00
"version": 4,
"minHeight": 1292,
"parentColumnSpace": 1,
"leftColumn": 0,
"children": [
2020-05-19 06:13:15 +00:00
{
"backgroundColor": "#FFFFFF",
"widgetName": "Container1",
"type": "CONTAINER_WIDGET",
"containerStyle": "card",
"isVisible": true,
"isLoading": false,
"parentColumnSpace": 75.25,
"parentRowSpace": 38,
"dynamicBindingPathList": [],
2020-05-19 06:13:15 +00:00
"leftColumn": 0,
"rightColumn": 8,
"topRow": 0,
"bottomRow": 9,
"snapColumns": 16,
"orientation": "VERTICAL",
"children": [
{
"backgroundColor": "transparent",
"widgetName": "a78zsh8adr",
"type": "CANVAS_WIDGET",
"containerStyle": "none",
2020-05-08 06:38:43 +00:00
"isVisible": true,
"isLoading": false,
2020-05-19 06:13:15 +00:00
"parentColumnSpace": 1,
"parentRowSpace": 1,
2020-05-08 06:38:43 +00:00
"leftColumn": 0,
2020-05-19 06:13:15 +00:00
"rightColumn": 602,
2020-05-08 06:38:43 +00:00
"topRow": 0,
2020-05-19 06:13:15 +00:00
"bottomRow": 342,
2020-05-08 06:38:43 +00:00
"snapColumns": 16,
"orientation": "VERTICAL",
"children": [
2020-05-19 06:13:15 +00:00
{
"text": "Title",
"textStyle": "HEADING",
"widgetName": "Text1",
"type": "TEXT_WIDGET",
"isVisible": true,
"isLoading": false,
"parentColumnSpace": 35.25,
"parentRowSpace": 38,
"dynamicBindingPathList": [],
2020-05-19 06:13:15 +00:00
"leftColumn": 0,
"rightColumn": 3,
"topRow": 0,
"bottomRow": 1,
"widgetId": "5mijsozz1o"
}
2020-05-08 06:38:43 +00:00
],
2020-05-19 06:13:15 +00:00
"widgetId": "hvosuw4z59",
"detachFromLayout": true,
"canExtend": false
}
],
"widgetId": "go64l3m18d"
},
{
"backgroundColor": "#FFFFFF",
"widgetName": "Container3",
"type": "CONTAINER_WIDGET",
"containerStyle": "card",
"isVisible": true,
"isLoading": false,
"parentColumnSpace": 75.25,
"parentRowSpace": 38,
"dynamicBindingPathList": [],
2020-05-19 06:13:15 +00:00
"leftColumn": 0,
"rightColumn": 16,
"topRow": 9,
"bottomRow": 23,
"snapColumns": 16,
"orientation": "VERTICAL",
"children": [
{
"backgroundColor": "transparent",
"widgetName": "ycnnb3haff",
"type": "CANVAS_WIDGET",
"containerStyle": "none",
2020-05-08 06:38:43 +00:00
"isVisible": true,
"isLoading": false,
2020-05-19 06:13:15 +00:00
"parentColumnSpace": 1,
"parentRowSpace": 1,
2020-05-08 06:38:43 +00:00
"leftColumn": 0,
2020-05-19 06:13:15 +00:00
"rightColumn": 1204,
"topRow": 0,
"bottomRow": 532,
2020-05-08 06:38:43 +00:00
"snapColumns": 16,
"orientation": "VERTICAL",
"children": [
2020-05-19 06:13:15 +00:00
{
"text": "Title",
"textStyle": "HEADING",
"widgetName": "Text3",
"type": "TEXT_WIDGET",
"isVisible": true,
"isLoading": false,
"parentColumnSpace": 72.875,
"parentRowSpace": 38,
"dynamicBindingPathList": [],
2020-05-19 06:13:15 +00:00
"leftColumn": 0,
"rightColumn": 3,
"topRow": 0,
"bottomRow": 1,
"widgetId": "ig6nii17j0"
},
{
"isVisible": true,
"isDisabled": false,
"widgetName": "Map1",
"enableSearch": true,
"zoomLevel": 50,
"enablePickLocation": true,
"allowZoom": true,
"mapCenter": {
"lat": 20.593684,
"long": 78.96288
},
"defaultMarkers": "[\n {\n \"lat\": -34.397,\n \"long\": 150.644,\n \"title\": \"Test A\"\n }\n]",
"type": "MAP_WIDGET",
"isLoading": false,
"parentColumnSpace": 71.75,
"parentRowSpace": 38,
"leftColumn": 3,
"rightColumn": 11,
"topRow": 1,
2020-05-19 06:13:15 +00:00
"bottomRow": 12,
"parentId": "yt4ouwn0sk",
"widgetId": "673etzjyv9",
"dynamicBindingPathList": []
2020-05-19 06:13:15 +00:00
}
2020-05-08 06:38:43 +00:00
],
2020-05-19 06:13:15 +00:00
"widgetId": "yt4ouwn0sk",
"detachFromLayout": true,
"canExtend": false
}
],
"widgetId": "s2x1p6okr1"
},
{
"backgroundColor": "#FFFFFF",
"widgetName": "Container4",
"type": "CONTAINER_WIDGET",
"containerStyle": "card",
"isVisible": true,
"isLoading": false,
"parentColumnSpace": 75.25,
"parentRowSpace": 38,
"dynamicBindingPathList": [],
2020-05-19 06:13:15 +00:00
"leftColumn": 8,
"rightColumn": 16,
"topRow": 0,
"bottomRow": 9,
"snapColumns": 16,
"orientation": "VERTICAL",
"children": [
{
"backgroundColor": "transparent",
"widgetName": "796xzyf2fj",
"type": "CANVAS_WIDGET",
"containerStyle": "none",
2020-05-08 06:38:43 +00:00
"isVisible": true,
"isLoading": false,
2020-05-19 06:13:15 +00:00
"parentColumnSpace": 1,
"parentRowSpace": 1,
"leftColumn": 0,
"rightColumn": 602,
2020-05-08 06:38:43 +00:00
"topRow": 0,
2020-05-19 06:13:15 +00:00
"bottomRow": 342,
2020-05-08 06:38:43 +00:00
"snapColumns": 16,
"orientation": "VERTICAL",
"children": [
2020-05-19 06:13:15 +00:00
{
"text": "Title",
"textStyle": "HEADING",
"widgetName": "Text2",
"type": "TEXT_WIDGET",
"isVisible": true,
"isLoading": false,
"parentColumnSpace": 35.25,
"parentRowSpace": 38,
"dynamicBindingPathList": [],
2020-05-19 06:13:15 +00:00
"leftColumn": 0,
"rightColumn": 3,
"topRow": 0,
"bottomRow": 1,
"widgetId": "8oo6fcjhy4"
}
2020-05-08 06:38:43 +00:00
],
2020-05-19 06:13:15 +00:00
"widgetId": "tf53p2yg6n",
"detachFromLayout": true,
"canExtend": false
}
],
"widgetId": "2q5e9wr5vi"
}
2020-05-08 06:38:43 +00:00
]
test: Remove unused data in DSL fixtures (#34405) Part of #33724. We have a lot of fixture files in our Cypress tests with DSLs of various kinds. They are used to update the DSL using the `/api/v1/layouts/{layoutId}/pages/{pageId}?applicationId={applicationId}`. This API, is [in this line in `LayoutControllerCE`](https://github.com/appsmithorg/appsmith/blob/c4e5d5e6c8f0428fe4a632333b9f6f13de3267b8/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/LayoutControllerCE.java#L71), and the request body is parsed as [objects of `LayoutUpdateDTO` record](https://github.com/appsmithorg/appsmith/blob/71bc84fc76e85c49312659d18a7632ad62780583/app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/LayoutUpdateDTO.java#L6). This `record`, accepts _only_ the `dsl` field, and nothing else. List of potential files that have this problem was identified with this command: ```sh cd app/client/cypress rg -Io 'AddDsl\(".+?\)' \ | cut -d\" -f2 \ | sort -u \ | while read line; do if rg -q '"(layoutOnLoadActions|layoutOnLoadActionErrors|userPermissions|new)":' fixtures/"$line".json; then echo $line fi done ``` (For reference, and to use on EE repo, after this is merged). **/test all** <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > 🔴 🔴 🔴 Some tests have failed. > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/9633990737> > Commit: 9e848f1ed0c3332177d2e6c4a75e2483f045395f > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9633990737&attempt=1&selectiontype=test&testsstatus=failed&specsstatus=fail" target="_blank">Cypress dashboard</a>. > Tags: `` > The following are new failures, please fix them before merging the PR: <ol> > <li>cypress/e2e/Regression/ClientSide/Widgets/RTE/RichTextEditor3_spec.ts > <li>cypress/e2e/Regression/ClientSide/Widgets/RTE/RichTextEditor_1_spec.js > <li>cypress/e2e/Regression/ClientSide/Widgets/RTE/RichTextEditor_2_spec.js </ol> > <a href="https://internal.appsmith.com/app/cypress-dashboard/identified-flaky-tests-65890b3c81d7400d08fa9ee3?branch=master" target="_blank">List of identified flaky tests</a>. <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Corrected the file path for loading DSL configuration in the nested list widget scenario. - **Chores** - Streamlined multiple JSON files by removing deprecated `layoutOnLoadActions` arrays and other obsolete fields, resulting in cleaner and more manageable configurations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-24 11:47:43 +00:00
}
}