PromucFlow_constructor/app/client/cypress/e2e/Regression/ServerSide/OnLoadTests
Shrikant Sharat Kandula 71bc84fc76
test: Fix extracing pageId from app page URL (#34401)
Over on `pg`, we use UUIDs for page IDs, not Object IDs, so the way we
extract page ID should account for this. This PR supports page IDs as
both ObjectId and UUID. So the same code should work on both `release`
and `pg`.

**/test sanity**



<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9625470562>
> Commit: e21db70964e824cbbb82a76182f46fe08a259f90
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9625470562&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`

<!-- end of auto-generated comment: Cypress test results  -->




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

- **Refactor**
- Improved URL parsing logic for extracting `pageid` using a new method
to enhance robustness.
- Added assertions to ensure `pageid` is not null before proceeding with
further actions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-22 18:33:29 +05:30
..
APIOnLoad_Spec.ts feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30
ExecuteAction_Spec.ts test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
JSOnLoad_cyclic_dependency_errors_spec.js test:replace assertPageSave with AssertAutoSave (#33972) 2024-06-06 13:11:03 +05:30
JSOnLoad2_Spec.ts test:PartialExport_Widgets spec file updated and import app method updated with validations (#33343) 2024-05-10 19:20:40 +05:30
JsOnLoad3_Spec.ts chore: remove commented code from @tag.JS specs (#32957) 2024-05-02 13:47:19 +05:30
JSOnLoad4_Spec.ts fix: deprecate JS object confirm before calling (#32527) 2024-04-12 12:18:14 +05:30
OnLoadActions_Spec.ts test: Fix extracing pageId from app page URL (#34401) 2024-06-22 18:33:29 +05:30
PostgresConnections_spec.ts feat: enabled editor pane sidebar (#29882) 2024-01-12 20:13:58 +05:30