PromucFlow_constructor/app/client/cypress/e2e/Sanity/Datasources
Sagar Khalasi b3c79f04ec
test: Fix mockdb flaky test case (#35959)
## Description
Fix the flaky test case with latest update.

**Problem :** Whenever the Mock DBs are getting corrupted, we see flaky
behaviours.
As per the solution, we are running reset script every day. We can not
increase the frequency as in a day time lot of testing pipelines are
running it. Most of the time we see failure at two places,
1. Query from Mock Mongo DB
2. Failure in afterEach run.

**Solution:** We need to remove flaky test cases part.
1. For mongo DB case, test till here so we can test connection at least
as mentioned by one of developer.
`dataSources.ValidateNSelectDropdown("Command", "Find document(s)");`.
2. Remove afterEach code as it is actually no required as we use new
setup for each new run.

**Relevant threads:**
1.
https://theappsmith.slack.com/archives/C0134BAVDB4/p1724317643564089?thread_ts=1724216243.067959&cid=C0134BAVDB4
2.
https://theappsmith.slack.com/archives/C02GAUE9P5H/p1712038530288709?thread_ts=1712020398.128169&cid=C02GAUE9P5H

Fixes #`35136`  


## 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/10633737589>
> Commit: 660b710bde7ca5c2d3998d86ce15753ac7c4c2bf
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10633737589&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Fri, 30 Aug 2024 14:07:14 UTC
<!-- end of auto-generated comment: Cypress test results  -->


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


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

## Summary by CodeRabbit

- **Bug Fixes**
- Streamlined test cases for mock database validations, improving
performance and efficiency.
- Removed unnecessary cleanup operations post-test execution,
simplifying the testing process.

- **Chores**
- Updated the test specification path to prioritize sanity testing of
mock databases over regression testing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-30 22:26:30 +05:30
..
Airtable_Basic_Spec.ts fix: commands title changed to command for each datasource query editor forms (#32526) 2024-04-10 17:05:01 +05:30
Arango_Basic_Spec.ts feat: cURL import now happens via a modal (#34830) 2024-07-10 14:22:39 +05:30
ArangoDataSourceStub_spec.js fix: default port numbers for the datasources (#32901) 2024-04-30 13:15:11 +05:30
AuthenticatedApiDatasource_spec.js test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
AuthenticatedApiWithOAuth_spec.ts test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
DatasourceForm_spec.js feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
DSAutosaveImprovements_spec.ts test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
ElasticSearchDatasource_spec.js test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
GraphQL_spec.ts chore: added test for asserting save button (#32113) 2024-03-27 19:38:56 +05:30
MockDBs_Spec.ts test: Fix mockdb flaky test case (#35959) 2024-08-30 22:26:30 +05:30
MongoDatasourceURI_spec.ts fix: default port numbers for the datasources (#32901) 2024-04-30 13:15:11 +05:30
MsSQL_Basic_Spec.ts fix: default port numbers for the datasources (#32901) 2024-04-30 13:15:11 +05:30
MsSQLDataSourceStub_spec.js test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
MySQL_spec.js test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
MySQLDataSourceStub_spec.js chore: removed onboarding flags ab_create_new_apps_enabled , ab_start_with_data_default_enabled (#31384) 2024-03-15 11:13:14 +05:30
MySQLNoiseTest_spec.js test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
Port_Number_Placeholder_Spec.ts test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
PostgresDatasource_spec.js test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
RedshiftDataSourceStub_spec.js test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
RestApiDatasource_spec.js test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
RestApiOAuth2Validation_spec.ts test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
SMTPDatasource_spec.js test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
Styles_spec.js test: Cypress - added @tag.excludeForAirgap, @tag.Templates tags (#29790) 2023-12-27 16:50:36 +05:30