PromucFlow_constructor/app/client/cypress/fixtures/executeAction.json
Vijetha-Kaja 59d2e0460a
test: Cypress - mock api url update + Flaky fixes (#20754)
## Description

- Modified mock api url and refactored specs accordingly

**Flaky fixes below:**

- Listv2_BasicChildWidgetInteraction_spec.js
- QueryPane/Mongo_Spec.js
- CreateNewApp_spec.js
- Enabling S3_1_spec - upload case back

## Type of change

- Flaky test fix

## How Has This Been Tested?
- Cypress test runs

## Checklist:
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test

---------

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-03-11 12:31:39 +05:30

651 lines
19 KiB
JSON

{
"clientSchemaVersion": 1,
"serverSchemaVersion": 4,
"exportedApplication": {
"name": "Execute Action Test",
"isPublic": false,
"appIsExample": false,
"unreadCommentThreads": 0,
"color": "#D9E7FF",
"icon": "camera",
"slug": "execute-action-test",
"evaluationVersion": 2,
"applicationVersion": 2,
"isManualUpdate": false,
"new": true
},
"datasourceList": [],
"pageList": [
{
"userPermissions": [
"read:pages",
"manage:pages"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987c9ec43c3d0bd6572222",
"unpublishedPage": {
"name": "Page1",
"slug": "page1",
"layouts": [
{
"id": "Page1",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 4896.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 1290.0,
"containerStyle": "none",
"snapRows": 125.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 1292.0,
"dynamicTriggerPathList": [],
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 26.0,
"bottomRow": 36.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "feinx8nce5",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page1_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"publishedPage": {
"name": "Page1",
"slug": "page1",
"layouts": [
{
"id": "Page1",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 4896.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 1290.0,
"containerStyle": "none",
"snapRows": 125.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 1292.0,
"dynamicTriggerPathList": [],
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 26.0,
"bottomRow": 36.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "feinx8nce5",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page1_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"new": true
},
{
"userPermissions": [
"read:pages",
"manage:pages"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987cdac43c3d0bd6572227",
"unpublishedPage": {
"name": "Page2",
"slug": "page2",
"layouts": [
{
"id": "Page2",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1224.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 730.0,
"containerStyle": "none",
"snapRows": 70.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 710.0,
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 31.0,
"bottomRow": 41.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "31eat3ae9u",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page2_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"publishedPage": {
"name": "Page2",
"slug": "page2",
"layouts": [
{
"id": "Page2",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1224.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 730.0,
"containerStyle": "none",
"snapRows": 70.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 710.0,
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 31.0,
"bottomRow": 41.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "31eat3ae9u",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page2_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"new": true
}
],
"pageOrder": [
"Page1",
"Page2"
],
"publishedPageOrder": [
"Page1",
"Page2"
],
"publishedDefaultPageName": "Page1",
"unpublishedDefaultPageName": "Page1",
"actionList": [
{
"id": "Page1_Api1",
"userPermissions": [
"read:actions",
"execute:actions",
"manage:actions"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987cafc43c3d0bd6572224",
"pluginType": "API",
"pluginId": "restapi-plugin",
"unpublishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "http://host.docker.internal:5001/v1"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page1",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/mock-api",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "records",
"value": "5"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"publishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "http://host.docker.internal:5001/v1"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page1",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/mock-api",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "records",
"value": "5"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"new": false
},
{
"id": "Page2_Api1",
"userPermissions": [
"read:actions",
"execute:actions",
"manage:actions"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987ce3c43c3d0bd657222a",
"pluginType": "API",
"pluginId": "restapi-plugin",
"unpublishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "http://host.docker.internal:5001/v1"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page2",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/mock-api",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "records",
"value": "10"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"publishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "http://host.docker.internal:5001/v1"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page2",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/mock-api",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "records",
"value": "10"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"new": false
}
],
"actionCollectionList": [],
"invisibleActionFields": {
"Page1_Api1": {
"unpublishedUserSetOnLoad": true,
"publishedUserSetOnLoad": true
},
"Page2_Api1": {
"unpublishedUserSetOnLoad": true,
"publishedUserSetOnLoad": true
}
},
"editModeTheme": {
"name": "Classic",
"displayName": "Classic",
"new": true,
"isSystemTheme": true
},
"publishedTheme": {
"name": "Classic",
"displayName": "Classic",
"new": true,
"isSystemTheme": true
},
"publishedLayoutmongoEscapedWidgets": {},
"unpublishedLayoutmongoEscapedWidgets": {}
}