PromucFlow_constructor/app/client/cypress/scripts
Sagar Khalasi cd80904369
chore: Run a local server with docker compose while running from yarn setup (#35636)
## Description
As a user, I want to run my backend server in local machine for running
cypress test cases.


Fixes #`35635`  


## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/10469851734>
> Commit: 33c2dbbcf389a6840830e8914738a068d8ab41d9
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10469851734&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Tue, 20 Aug 2024 10:54:22 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No

<img width="1440" alt="Screenshot 2024-08-12 at 10 12 04 PM"
src="https://github.com/user-attachments/assets/4ad51bb1-30f6-4d6c-aa60-f658848492b0">
<img width="1440" alt="Screenshot 2024-08-12 at 10 12 10 PM"
src="https://github.com/user-attachments/assets/03a3242b-302f-422c-b0df-c9da5f08d0c1">
<img width="1440" alt="Screenshot 2024-08-12 at 10 13 03 PM"
src="https://github.com/user-attachments/assets/00b71397-12a4-4471-b6a5-83642d7edc83">
<img width="1440" alt="Screenshot 2024-08-12 at 10 13 10 PM"
src="https://github.com/user-attachments/assets/2d15a205-95fa-4201-b1d1-45453064da8d">
<img width="1029" alt="Screenshot 2024-08-12 at 10 14 11 PM"
src="https://github.com/user-attachments/assets/e1778a43-9690-42ca-8adc-351d7ec95206">



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


- **New Features**
- Introduced a new function to manage local server setup using Docker
Compose, enhancing the setup process.
	- Added user prompts to guide decisions regarding local server setup.

- **Improvements**
- Implemented a retry mechanism to check Docker services, improving
reliability during setup.
- Enhanced error handling to provide clear feedback when setup
conditions are not met.

- **Refactor**
- Integrated new functionalities into the existing setup process for a
smoother user experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-20 16:49:13 +05:30
..
cypress-hooks.ts ci: Split spec improvements for cypress ci runs (#26774) 2023-09-25 09:49:21 +05:30
cypress-local-setup.js chore: Run a local server with docker compose while running from yarn setup (#35636) 2024-08-20 16:49:13 +05:30
cypress-split-dynamic.ts ci: Allow static split of cypress specs (#29653) 2023-12-18 17:10:11 +05:30
cypress-split-static.ts chore: Adding new command for running test case (#35419) 2024-08-05 21:04:45 +05:30
no_spec.ts ci: Migrate pending workflows to dime defenders (#26968) 2023-09-06 14:40:13 +05:30
package.json chore: Add script to setup cypress locally (#33677) 2024-06-04 13:26:09 +05:30
util.ts ci: Allow static split of cypress specs (#29653) 2023-12-18 17:10:11 +05:30
yarn.lock chore: Add script to setup cypress locally (#33677) 2024-06-04 13:26:09 +05:30