PromucFlow_constructor/app/client
Jacques Ikot 86b88242d6
chore: add unit test for template card (#30160)
## Description
Add unit test for template card

`  <TemplateLayout />`
    ✓ renders template details correctly
    ✓ navigates to the template URL when clicked
    ✓ does not trigger onForkTemplateClick when the button is hidden
✓ opens the fork modal when the fork button is clicked and no
onForkTemplateClick event passed
    ✓ renders fixed height template styling correctly

#### PR fixes following issue(s)
Fixes #30024 

#### Type of change
> Please delete options that are not relevant.
- New feature (non-breaking change which adds functionality)

## Testing

#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


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

- **Refactor**
	- Improved the organization of code imports for better maintainability.

- **Tests**
- Added unit tests for `TemplateLayout` and `FixedHeightTemplate`
components.

- **Accessibility Enhancements**
	- Included `alt` text for images to aid screen readers.

- **UI Improvements**
	- Added `data-testid` attributes to buttons for more robust testing.
	- Enhanced button usability by dynamically setting the disabled state.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-10 15:54:47 +05:30
..
.husky
.yarn
cypress fix: resetWidget doesn't reset child widgets inside a list (#30121) 2024-01-09 18:51:56 +05:30
docker/templates chore: frontend and backend telemetry updates for execute flow #28800 and #28805 (#28936) 2023-11-24 13:09:02 +05:30
generators chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
packages fix: modal body (#30108) 2024-01-09 11:54:40 +03:00
perf
public chore: frontend and backend telemetry updates for execute flow #28800 and #28805 (#28936) 2023-11-24 13:09:02 +05:30
src chore: add unit test for template card (#30160) 2024-01-10 15:54:47 +05:30
test chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
typings
.babelrc
.dockerignore
.editorconfig
.eslintrc.base.json
.eslintrc.js
.gitignore
.lintstagedrc.json chore: Switch to gitleaks from git-secrets (#29103) 2023-11-28 06:32:20 +05:30
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml
build.sh
craco.build.config.js
craco.common.config.js chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
craco.dev.config.js
cypress_ci_custom.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress_ci_hosted.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress_ci.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress-add-tags.js test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
cypress.config.ts test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
download-assets.js
jest.config.js chore: frontend and backend telemetry updates for execute flow #28800 and #28805 (#28936) 2023-11-24 13:09:02 +05:30
package.json chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
README.md
README.old.md
start-https.sh
tailwind.config.js
tsconfig.json
tsconfig.path.json
vercel.json
yarn.lock chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide