PromucFlow_constructor/app/client/cypress
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
..
e2e test: Fix extracing pageId from app page URL (#34401) 2024-06-22 18:33:29 +05:30
fixtures chore: tests for wds button widget (#34242) 2024-06-20 18:30:16 +05:30
locators chore: tests for wds button widget (#34242) 2024-06-20 18:30:16 +05:30
manual_TestSuite test: Cypress - added @tag.excludeForAirgap, @tag.Templates tags (#29790) 2023-12-27 16:50:36 +05:30
patches
plugins ci: Allow static split of cypress specs (#29653) 2023-12-18 17:10:11 +05:30
scripts fix: make url selectable (#33952) 2024-06-04 12:28:29 +03:00
snapshots chore: tests for wds button widget (#34242) 2024-06-20 18:30:16 +05:30
support test: Fix extracing pageId from app page URL (#34401) 2024-06-22 18:33:29 +05:30
.eslintrc.json chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
apply-patches.js
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 ci: Remove unused code from Cypress setup (#32537) 2024-04-10 13:28:09 +05:30
tags.js chore: Remove duplicate Table tag from the list of tags (#33280) 2024-05-08 15:07:52 +05:30
test.sh
tsconfig.json chore: add strict-boolean-expressions rule (#27852) 2023-10-06 16:05:32 +03:00
xataadd.sh
xatadel.sh