PromucFlow_constructor/app/client/cypress/support/Objects
Anna Hariprasad 5ddf6e6977
feat: remove-clear-option-for-required-select-widget (#35060)
Hi @rohan-arthur, @somangshu , @contributor-support 

**Fixes** #34262 

**What's in this pr :**

- Added isRequired prop for select widget components to control the
logic for the remove button.
- Added two test cases to verify clear button rendering when isRequired
is set to true and false.

**Screenshots :**

![image](https://github.com/user-attachments/assets/4c276add-f28e-4060-8f44-a957dc48f673)

![image](https://github.com/user-attachments/assets/02138d93-e4c1-4e67-97df-0703398c440b)

![image](https://github.com/user-attachments/assets/8eb8ec6f-9124-4a61-9df4-448338086714)

Please let me know if any changes are required.

Thank you.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced an `isRequired` property to the `SelectButton`,
`SelectComponent`, and `SelectWidget`, allowing users to indicate
whether a selection is mandatory.
- Enhanced rendering logic in the `SelectButton` to conditionally
display the cancel button based on the `isRequired` state.
- Improved styling and behavior options in `SelectComponent` for better
integration into forms.

- **Tests**
- Added new test cases for the `SelectButton` to ensure correct
rendering behavior of the cancel button based on the `isRequired` prop.
- Streamlined Cypress tests to focus on the non-existence of the clear
button, reflecting updated component behavior.
- Updated locator configurations to improve test coverage for user
interactions involving clearing selections.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-28 16:03:16 +05:30
..
CommonErrorMessages.ts
CommonLocators.ts feat: remove-clear-option-for-required-select-widget (#35060) 2024-08-28 16:03:16 +05:30
DataManager.ts chore: Update Postgres port for TED in CI (#34430) 2024-06-25 10:35:15 +05:30
FeatureFlags.ts fix: turned on learnability flags on by default (#33283) 2024-05-13 15:48:11 +05:30
mySqlData.ts
ObjectsCore.ts chore: tests for wds button widget (#34242) 2024-06-20 18:30:16 +05:30
Registry.ts chore: tests for wds button widget (#34242) 2024-06-20 18:30:16 +05:30