PromucFlow_constructor/app/client/cypress/fixtures
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
..
Bugs
Datatypes
Files
ImportApps ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
Listv2
PartialImportExport ci: Fixing partial export spec (#40611) 2025-05-08 17:22:05 +05:30
Table ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
Templates
Videos
AAAFlowerVase.jpeg
AAAGlobeChristmas.jpeg
ActionSelectorAppNewExported.json
addWidgetTable-mock.json
alignmentWithDynamicHeightDsl.json
AllWidgetsDsl.json
anvilAppTheming.json
anvilButtonWidget.json
anvilCheckboxGroupWidget.json
anvilCheckboxWidget.json
anvilCurrencyInputWidget.json
anvilHeadingWidget.json
anvilIconButtonWidget.json
anvilInlineButtonWidget.json
anvilInputWidget.json
anvilParagraphWidget.json
anvilPhoneInputWidget.json
anvilRadioGroupWidget.json
anvilStatsWidget.json
anvilSwitchGroupWidget.json
anvilSwitchWidget.json
anvilTableWidget.json
anvilToolbarButtonWidget.json
anvilZoneSectionWidget.json
Api_withPageload_Input_TestData.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
apiMultiPartData.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
apiParallelDsl.json
apiTableDsl.json
appNavigationTestingApp.json
appNavigationTestingAppWithLongPageNamesAndTitle.json
appsmith-community-logo.svg
Appsmith.gif
appsmithlogo.png
audioWidgetDsl.json
autocomp.json
autoHeightContentAlignmentDSL.json
autoHeightInvisibleWidgetsDSL.json
autoHeightOverlapDSL.json
autoLayoutAutoHeight.json
autoLayoutContainerWidgetDsl.json
autoLayoutCopyPaste.json
autoLayoutReflow.json
AutoLayoutTableWidgetDsl.json
AutolayoutWidgetsDsl.json
base64imagedsl.json
basicDsl.json
basicNumberDataTableDsl.json
basicTabledsl.json
branding_sample.png
branding_sampleICO.ico
branding_samplejpg.jpg
buttonApiDsl.json
buttondsl.json
ButtonGroup_MenuButton_Width_dsl.json
buttonGroupDsl.json
buttonLintErrorDsl.json
buttonRecaptchaDsl.json
CameraDsl.json
CanvasResizeDsl.json
categorySliderWidgetDsl.json
chartCustomDataDsl.json
chartCustomSankeyDataDsl.json
ChartDsl.json
ChartLoadingDsl.json
ChartTextDsl.json
chartUpdatedDsl.json
checkboxgroupDsl.json
clearIntervalApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
CMSdsl.json
commondsl.json
CommunityIssuesExport.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
ConcreteHouse.jpg
containerdsl.json
ContainerWithOtherWidgetsDsl.json
ContextSwitching.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
conversionDslWithDynamicBindings.json
conversionFrAutoLayoutDsl.json
CurrencyInputDynamic.json
CurrencyInputIssueExport.json
customWidget.json
datasources.json
datepicker_switchDsl.json
datePicker2dsl.json
datePickerdsl.json
datePickerV2Updated_dsl.json
debuggerDependencyDsl.json
debuggerTableDsl.json
defaultFilterText.json
defaultMetadataDsl.json
defaultMetaDsl.json
defaultTableDsl.json
defaultTableV2Dsl.json
DeleteGitRepos.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
deprecatedWidgets.json
disabledWidgetsDsl.json
displayWidgetDsl.json
DividerDsl.json
DocumentViewerDsl.json
dropDownWidget_reset_check_dsl.json
dynamicHeightCanvasResizeDsl.json
dynamicHeightContainerCheckboxdsl.json
dynamicHeightContainerdsl.json
dynamicHeightContainerScrolldsl.json
DynamicHeightDefaultHeightdsl.json
dynamicHeightFormSwitchdsl.json
dynamicHeightListDsl.json
DynamicHeightListTextDsl.json
DynamicHeightModalDsl.json
dynamicHeightStatboxdsl.json
dynamicHeigthContainerFixedDsl.json
dynamicTabWidgetdsl.json
editorContextdsl.json
emptyDSL.json
EmptyListWidget.json
exampleEncodedDocs.js
executeAction.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
executionParamsDsl.json
explorerHiddenWidgets.json
exported-app.json
exportedApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
FileGreaterThan20MB.json
filepickerDsl.json
filePickerTableDSL.json
filePickerV2_reset_check_dsl.json
filePickerV2WidgetReskinDsl.json
fontData.json
forkedApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
forkNonSignedInUser.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
formChangeDSL.json
formDataDsl.json
formdsl.json
formdsl1.json
formHasChangesDsl.json
formInputTableDsl.json
formInputTableV2Dsl.json
formResetDsl.json
formSelectDsl.json
formSelectTreeselectDsl.json
formSwitchDsl.json
formWidgetdsl.json
formWidgetWithInputValCheckDsl.json
formWithInputdsl.json
formWithRTEDsl.json
formWithtabdsl.json
gitImport.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
googleSource.json
htmlCellInTableWidgetV2.ts
iconButtonWidgetsDsl.json
IframeDsl.json
IframeOnSrcDocChange.json
IframeWidgetPostMessage.json
ImageHugWidgetDsl.json
ImportAppAllAccess.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
ImportAppReadAccess.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
ImportAppReadWriteAccess.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
ImportAppSelectedAccess.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
inputBindingdsl.json
inputdsl.json
inputMaxCharDsl.json
inputWidgetMobileDsl.json
InputWidgetV2InsideListDSL.json
Invalid_binding_dsl.json
invisibleWidgetdsl.json
Js_toggle_dsl.json
JSApiOnLoadDsl.json
jsFunctionTriggerDsl.json
JSObjectMutationTestApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
jsObjectTesting.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
JsObjecWithGitdsl.json
JSObjOnLoadApp.json
jsonFormDslWithoutSchema.json
jsonFormDslWithSchema.json
jsonFormDslWithSchemaAndWithoutSourceData.json
jsonFormDynamicHeightDsl.json
jsonFormInModalDsl.json
jsonFormUnicodeDSLWithoutSourceData.json
jsonTextDsl.json
largeJSONData.json
layoutdsl.json
lazyRender.json
library_export.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
listdsl.json
listRegression2Dsl.json
listRegression3Dsl.json
listRegressionDsl.json
listV2AudioVideoDsl.json
listV2ButtonsDsl.json
listV2NestedDsl.json
listv2PaginationDsl.json
ListVulnerabilityDSL.json
listwidgetData.json
listwidgetdsl.json
listWidgetLintDsl.json
ListWidgetWithDataAndButtonDSL.json
longCanvasDsl.json
mainContainerOverflow.json
MapChartDsl.json
Mapdsl.json
menuButtonDsl.json
mobileresponisvenessDsl.json
mobileresponsiveness_multipleDsl.json
mobileViewScrollDsl.json
ModalDsl.json
modalOnTableFilterPaneDsl.json
modalScroll.json
modalWidgetBGcolorDSL.json
modalWidgetTestApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
mongo_GET_Actions.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
mongo_GET_selectTableDropdown.json
mongo_POST_Actions.json
mongo_PUT_replaceLayoutWithCRUD.json
mongoAppdsl.json
mongouri_data_spec.json
multiPartFormDataDsl.json
multipleContainerdsl.json
MultipleInput.json
MultipleWidgetDsl.json
multiSelectDsl.json
multiSelectedRowUpdationDsl.json
multiSelectedRowUpdationTableV2Dsl.json
multiTreeSelectDsl.json
mySQL_GET_Actions.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
mySQL_GET_selectTableDropdown.json
mySQL_POST_Execute.json
mySQL_PUT_replaceLayoutWithCRUD.json
navigateToInputDsl.json
navigateTotabledsl.json
newFormDsl.json
noiseDsl.json
numberSliderWidgetDsl.json
OldApp_DSTesting1.9.24_Latest_29August2024_withuiforframeowrk.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
omnibarDsl.json
one_postgres.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
onPageLoadActionsDsl.json
onPageUnloadBehavior_app.json test: adds cypress spec to test onpage unload functionality (#41084) 2025-07-04 16:48:24 +05:30
PageLoadDsl.json
paramsDsl.json
PartialImportAppNegative.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
patchjson.txt
PgAdmindsl.json
PhoneInputDynamic.json
plugins.json
postInviteStub.json
postjson.txt
previewMode.json
promisesBtnDsl.json
promisesBtnImgDsl.json
promisesBtnListDsl.json
promisesStoreValueDsl.json
PropertyPaneSlashMenuBindings.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
publishedModeToastToggleDsl.json
putjson.txt
qr.mjpeg
radioGroup_int_value_dsl.json
rangeSliderWidgetDsl.json
replay.json
REPO.ts
resetPassword.json
resetWidgetBug33601.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
resetWidgetDSL.json
ResizeListDsl.json
richTextEditorDsl.json
rundsl.json
sample-pdf-file.pdf
Sample.tsv
SampleAppIDETest.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
SampleXLS.xls
saveAction.json
Select_table_dsl.json
SelectDslWithEmptyOptions.json
selectMultiSelectTreeSelectWidgetDsl.json
selectWidgetDsl.json
setIntervalApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
SimpleBinding.json
slashcommandDsl.json
SMTPTestdsl.json
snippetDsl.json
snippetErrordsl.json
snippingTableDsl.json
StatboxDsl.json
SwitchGroupWidgetDsl.json
swtchTableDsl.json
swtchTableV2Dsl.json
tabdsl.json
tabInputDsl.json
tableAndChart.json
tableAndTextDsl.json
TableClientSearch.json
tableDateColumnTypes.ts
TableFilterImportApp.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
tableInputDsl.json
TableMigrationAppExported.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
TableMigrationDsl.json
tableNewDsl.json
tableNewDslWithPagination.json
tableResizedColumnsDsl.json
tableTextPaginationDsl.json
tablev1NewDsl.json
tableV2AndTextDsl.json
TableV2ClientSearch.json
tableV2ColumnOrderDsl.json
tableV2FilteringWithPrimaryColumn.json
tableV2FilteringWithPrimaryColumnJSObjectWidthData.ts
tableV2NewDsl.json
tableV2NewDslWithPagination.json
tableV2ResizedColumnsDsl.json
tableV2TextPaginationDsl.json
tableV2WidgetCondnFormatDsl.json
tableV2WidgetDsl.json
tableV2WithTextWidgetDsl.json
tableV2WithUrlColumnDsl.json
tableWidgetCondnFormatDsl.json
TableWidgetDatawithEmptyKeys.json
tableWidgetDsl.json
tableWithNumberColumnDsl.json
tableWithTextWidgetDsl.json
tabsDsl.json
tabsWidgetDsl.json
tabsWidgetReset.json
tabsWithWidgetDsl.json
templatePageWithNullbindings.json
Test_csv.csv
test-data-gsheet.ts
test.ppt
testAction.json
testdata.json
TestDataSet1.json
testDoc.docx
testFile.mov
testFile2.mov
testRemoveFile1.json
testRemoveFile2.json
TestSpreadsheet.xlsx
textDsl.json
textLintErrorDsl.json
textNewDsl.json
TextTabledsl.json
TextTableV2dsl.json
textWidgetDsl.json
textWidgetDynamicdsl.json
ThemeAppdsl.json
TreeSelectDsl.json
TryToCoverMore.json ci: Updating fixtures to replace executeOnLoad with reactiveActions (#40555) 2025-05-02 19:14:53 +05:30
uiBindDsl.json
uiBindnewDsl.json
US_PopulationTest.xlsx
user.json
variables.ts
videoWidgetApp.json
viewdsl.json
WidgetCopyPaste.json
widgetPopupDsl.json
widgetSelection.json
xmlParser.json