PromucFlow_constructor/app/client/cypress/e2e/Regression/ServerSide
Rahul Barwal 96981d870b
test: adds cypress spec to test onpage unload functionality (#41084)
## Description
Adds spec file and fixture file for on page unload functionality

Fixes #41000
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.JS, @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/16070917983>
> Commit: 9435c88d922a2c1344cc5feb955ce3eb5f8620f5
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=16070917983&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.JS, @tag.Sanity`
> Spec:
> <hr>Fri, 04 Jul 2025 10:45:13 UTC
<!-- end of auto-generated comment: Cypress test results  -->


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


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

## Summary by CodeRabbit

* **Tests**
* Added a comprehensive end-to-end test suite to verify on-page unload
behavior across different application modes and navigation methods.
* Included scenarios to ensure unload handlers trigger correctly and do
not fire redundantly.
  * Confirmed execution of multiple unload handlers in preview mode.

* **Chores**
* Introduced a new application fixture for testing on-page unload
actions with multiple pages, widgets, and JavaScript actions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-07-04 16:48:24 +05:30
..
ActionExecution chore: Reverted appsmith url (#37267) 2024-11-20 10:46:51 +05:30
ApiTests ci: Fixing cypress tests that are failing due to the change from executeOnLoad to runBehavior (#40489) 2025-04-30 20:21:02 +05:30
AppLevelImport chore: Addding dependent tags (#36965) 2024-10-18 18:19:08 +05:30
Datasources ci: Fixing cypress tests that are failing due to the change from executeOnLoad to runBehavior (#40489) 2025-04-30 20:21:02 +05:30
GenerateCRUD fix: fix test cases for postgres2 (#39648) 2025-03-10 10:34:50 +00:00
JsFunctionExecution chore: Updating the spelling for runBehaviour (#40490) 2025-05-02 17:58:26 +05:30
LoginTests chore: Added sanity and tags for blank tag specs (#36421) 2024-09-19 18:21:58 +05:30
MySQL_Datatypes feat: Enable new toolbar for cypress (#37148) 2024-12-03 09:21:43 +05:30
OnLoadTests test: adds cypress spec to test onpage unload functionality (#41084) 2025-07-04 16:48:24 +05:30
Params ci: Fixing cypress tests that are failing due to the change from executeOnLoad to runBehavior (#40489) 2025-04-30 20:21:02 +05:30
Postgres_DataTypes test: updated boolean spec (#39789) 2025-03-19 10:35:12 +05:30
QueryPane fix: check mongo spec 1 fix (#39168) 2025-02-11 15:14:13 +05:30