## Description - This PR includes [Set widget property Scenarios](https://github.com/appsmithorg/TestSmith/issues/2409) script - entityExplorer.RenameEntityFromExplorer() improved - jsEditor.CreateJSObject() improved **Flaky fixes below spces:** - ClientSide/JSObject/JSObjectMutation_spec.ts - Widgets/Form/FormWidget_Select_TreeSelect_spec.js - ClientSide/BugTests/Bug27817_Spec.ts - ServerSide/JsFunctionExecution/JSFunctionExecution_spec.ts - ClientSide/SettingsPane/EmbedSettings_spec.ts - /Widgets/Sliders/CategorySlider_spec.ts - Widgets/Select/RTL_support.ts - Widgets/TableV2/Edge_case_spec.js - Git/GitSync/SwitchBranches_spec.js - Widgets/Modal/Modal_spec.ts - MySQL_Datatypes/Basic_Spec.ts - Binding/TableTextPagination_spec.js - /GitSync/DeleteBranch_spec.js - /Sliders/NumberSlider_spec.ts #### Type of change - Script fix (non-breaking change which fixes an issue) ## Testing #### How Has This Been Tested? - [X] Cypress CI runs ## Checklist: #### QA activity: - [X] Added `Test Plan Approved` label after Cypress tests were reviewed
19 lines
391 B
TypeScript
19 lines
391 B
TypeScript
export const featureFlagIntercept = (
|
|
flags: Record<string, boolean>,
|
|
reload = true,
|
|
) => {
|
|
const response = {
|
|
responseMeta: {
|
|
status: 200,
|
|
success: true,
|
|
},
|
|
data: flags,
|
|
errorDisplay: "",
|
|
};
|
|
cy.intercept("GET", "/api/v1/users/features", response);
|
|
if (reload) {
|
|
cy.reload();
|
|
cy.wait(2000); //for the page to re-load finish for CI runs
|
|
}
|
|
};
|