PromucFlow_constructor/app/client/cypress
Sagar Khalasi 1cf043c40a
fix: Inline editing flaky test fix (#36366)
## Description

EE PR: [Appsmith EE Pull Request
#5158](https://github.com/appsmithorg/appsmith-ee/pull/5158)

Root Cause Analysis (RCA):
The `updateCodeInput` function was identified as a source of flakiness
due to improper execution. Additionally, the `SaveLocalStorageCache`
caused issues by retaining the reset button after the 6th test case,
resulting in a duplicate button in the 7th test case, which led to test
failures.

Solution:
Replaced `updateCodeInput` with `EnterJSContext` from `agHelper` for
more reliable execution. For the second flaky step, a new page was
created, and a table with relevant data was added. This resolved the
issue without requiring significant changes to the test case or
workflow.

Fixes #`36365`  

## Automation

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

### 🔍 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/10940196158>
> Commit: 32d1be4c3dfe54bf8a0f8e9f54b20d2845c86407
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10940196158&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.ImportExport`
> Spec:
> <hr>Thu, 19 Sep 2024 12:01:32 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

## Summary by CodeRabbit

- **Bug Fixes**
- Adjusted the inline editing test suite for the table widget to improve
state management between tests.

- **New Features**
- Updated the limited tests to focus on inline editing functionality,
enhancing testing priorities for the Table V2 widget.
- Introduced new properties in the widget locators to enhance UI
interactions, including selectors for various controls and elements
within the property pane and cell editing functionalities.
- Added a new JavaScript toggle selector to facilitate interactions in
tests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-20 12:44:14 +05:30
..
e2e fix: Inline editing flaky test fix (#36366) 2024-09-20 12:44:14 +05:30
fixtures fix: Incorrect updation of selctedRowIndex when primary column is set. (#36393) 2024-09-20 12:25:23 +05:30
locators fix: Inline editing flaky test fix (#36366) 2024-09-20 12:44:14 +05:30
patches
plugins chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
scripts chore: Run a local server with docker compose while running from yarn setup (#35636) 2024-08-20 16:49:13 +05:30
snapshots/Regression/ClientSide chore: refactor wds combobox component (#36286) 2024-09-17 10:59:01 +03:00
support test: fix canvas context property pane (#36356) 2024-09-18 17:31:40 +05:30
.eslintrc.json chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
apply-patches.js
Dockerfile chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
index.ts
init-mssql-dump-for-test.sql
init-mysql-dump-for-test.sql
init-pg-dump-for-test.sql
limited-tests.txt feat: constrained diff between states (#31847) 2024-03-27 14:37:46 +05:30
setup-test-ci.sh chore: Logs and potential fix for CI startup flakiness (#34461) 2024-06-25 14:03:56 +05:30
tags.js ci: To improve readability sorted tags in tags.js (#34452) 2024-06-25 05:47:34 +00:00
test.sh
tsconfig.json chore: change snapshot package (#35867) 2024-09-12 11:09:42 +03:00
xataadd.sh
xatadel.sh