diff --git a/app/client/cypress/limited-tests.txt b/app/client/cypress/limited-tests.txt index aa00835ffb0e..d34c57527cf7 100644 --- a/app/client/cypress/limited-tests.txt +++ b/app/client/cypress/limited-tests.txt @@ -1,5 +1,6 @@ # To run only limited tests - give the spec names in below format: -cypress/e2e/Regression/ClientSide/Templates/Fork_Template_spec.js +cypress/e2e/Regression/ClientSide/BugTests/AbortAction_Spec.ts +cypress/e2e/Regression/ServerSide/ApiTests/API_MultiPart_Spec.ts # For running all specs - uncomment below: #cypress/e2e/**/**/* diff --git a/app/client/src/pages/Editor/APIEditor/ApiEditorContext.tsx b/app/client/src/pages/Editor/APIEditor/ApiEditorContext.tsx index 28cca89f39e0..f79377318aac 100644 --- a/app/client/src/pages/Editor/APIEditor/ApiEditorContext.tsx +++ b/app/client/src/pages/Editor/APIEditor/ApiEditorContext.tsx @@ -59,6 +59,14 @@ export function ApiEditorContextProvider({ ], ); + /* @ts-expect-error: Types are not available */ + if (typeof window.Cypress?.log === "function") { + /* @ts-expect-error: Types are not available */ + window.Cypress.log({ + message: `ApiEditorContextProvider, ${JSON.stringify(settingsConfig || {})} ${JSON.stringify(value.settingsConfig || {})}`, + }); + } + return ( {children} diff --git a/app/client/src/pages/Editor/APIEditor/CommonEditorForm.tsx b/app/client/src/pages/Editor/APIEditor/CommonEditorForm.tsx index 20083d77bc2d..95586546d885 100644 --- a/app/client/src/pages/Editor/APIEditor/CommonEditorForm.tsx +++ b/app/client/src/pages/Editor/APIEditor/CommonEditorForm.tsx @@ -181,6 +181,7 @@ function CommonEditorForm(props: CommonFormPropsWithExtraParams) { moreActionsMenu, notification, saveActionName, + settingsConfig, } = useContext(ApiEditorContext); const { @@ -194,9 +195,20 @@ function CommonEditorForm(props: CommonFormPropsWithExtraParams) { isRunning, onRunClick, pluginId, - settingsConfig, } = props; + /* @ts-expect-error: Types are not available */ + if (typeof window.Cypress?.log === "function") { + /* @ts-expect-error: Types are not available */ + window.Cypress.log({ + message: `CommonEditorForm: context, ${JSON.stringify(settingsConfig || {})}`, + }); + /* @ts-expect-error: Types are not available */ + window.Cypress.log({ + message: `CommonEditorForm: props, ${JSON.stringify(props.settingsConfig || {})}`, + }); + } + const params = useParams<{ baseApiId?: string; baseQueryId?: string }>(); // passing lodash's equality function to ensure that this selector does not cause a rerender multiple times. diff --git a/app/client/src/pages/Editor/APIEditor/index.tsx b/app/client/src/pages/Editor/APIEditor/index.tsx index 8e97ac8ec2c7..c98a4e2e73fa 100644 --- a/app/client/src/pages/Editor/APIEditor/index.tsx +++ b/app/client/src/pages/Editor/APIEditor/index.tsx @@ -65,6 +65,9 @@ function ApiEditorWrapper(props: ApiEditorWrapperProps) { const settingsConfig = useSelector((state) => getPluginSettingConfigs(state, pluginId), ); + const settingsConfigAll = useSelector( + (state) => state.entities.plugins.settingConfigs, + ); const pagePermissions = useSelector(getPagePermissions); const isFeatureEnabled = useFeatureFlag(FEATURE_FLAG.license_gac_enabled); const isConverting = useSelector((state) => @@ -163,6 +166,14 @@ function ApiEditorWrapper(props: ApiEditorWrapperProps) { return ; }, [action?.name, isConverting, icon]); + /* @ts-expect-error: Types are not available */ + if (typeof window.Cypress?.log === "function") { + /* @ts-expect-error: Types are not available */ + window.Cypress.log({ + message: `ApiEditorWrapper, ${JSON.stringify(settingsConfigAll || {})} ${JSON.stringify(plugins)} ${pluginId}`, + }); + } + return ( {!props.actionSettingsConfig ? ( diff --git a/app/client/src/sagas/PluginSagas.ts b/app/client/src/sagas/PluginSagas.ts index 215c7511bf4b..8c85fcbcdfed 100644 --- a/app/client/src/sagas/PluginSagas.ts +++ b/app/client/src/sagas/PluginSagas.ts @@ -100,6 +100,16 @@ function* fetchPluginFormConfigsSaga(action?: { const graphqlPlugin = getGraphQLPlugin(plugins); const appsmithAIPlugin = getAppsmithAIPlugin(plugins); + if ( + /* @ts-expect-error: Types are not available */ + typeof window.Cypress?.log === "function" + ) { + /* @ts-expect-error: Types are not available */ + window.Cypress.log({ + message: `fetchPluginFormConfigsSaga, ${apiPlugin ? JSON.stringify(apiPlugin) : " No apiPlugin "} ${apiPlugin && defaultActionSettings[apiPlugin.type] ? JSON.stringify(defaultActionSettings[apiPlugin.type] || {}) : " No apiPlugin settings"}`, + }); + } + if (apiPlugin) { pluginIdFormsToFetch.add(apiPlugin.id); } @@ -183,6 +193,17 @@ function* fetchPluginFormConfigsSaga(action?: { editorConfigs[pluginId] = pluginFormData[index].editor; } + if ( + /* @ts-expect-error: Types are not available */ + typeof window.Cypress?.log === "function" && + plugin?.type === PluginType.API + ) { + /* @ts-expect-error: Types are not available */ + window.Cypress.log({ + message: `fetchPluginFormConfigsSaga, ${JSON.stringify(pluginFormData[index].setting || {})} ${JSON.stringify(defaultActionSettings[plugin.type] || {})}`, + }); + } + // Action settings form if not available use default if (plugin && !pluginFormData[index].setting) { settingConfigs[pluginId] = defaultActionSettings[plugin.type];