PromucFlow_constructor/app/client/cypress
Rahul Barwal 7c4034308b
fix: starter building blocks on canvas removes existing queries and JS objects (#32629)
## Description
<ins>Root cause: </ins>
The original intention of the building blocks on canvas was to serve a
new user on their very first app.
Looking at (good) usage of this feature, we turned it on for all pages
on all apps.
Now, an experienced user don't always start with UI and thats when we
hit this issue.

Additionally, this was a tech debt we had to repay and this PR takes
that opportunity to get rid of hack of using `add a page from template`
for this feature and uses proper PIE based API to support his.

Fixes #32573
_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.Templates"

### 🔍 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/8797225643>
> Commit: 5f7f0fd094284faf67338412a57ef4757eb70af8
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8797225643&attempt=1"
target="_blank">Click here!</a>

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
















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

- **New Features**
- Introduced functionality for importing starter building blocks into
applications, including layout positioning and action triggers upon
successful import.
- Added new actions and selectors in Redux for managing current forking
building block names.

- **Refactor**
- Updated the handling of template names and constants for better
consistency and use within the app.
- Simplified event handling and variable naming in several components
for improved code clarity and performance.

- **Bug Fixes**
- Adjusted analytics and event data handling to ensure accurate tracking
and functionality.

- **Tests**
- Updated Cypress E2E tests to reflect changes in functionality and
removed outdated test cases.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-23 16:05:19 +05:30
..
e2e fix: starter building blocks on canvas removes existing queries and JS objects (#32629) 2024-04-23 16:05:19 +05:30
fixtures test: Some cleanup for Git Cypress tests (#32836) 2024-04-23 10:01:14 +05:30
locators chore: Make edit launch buttons as links & add upgrade ramps for session timeout setting (#31862) 2024-03-21 15:37:13 +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 ci: Allow static split of cypress specs (#29653) 2023-12-18 17:10:11 +05:30
snapshots test: visual tests to be enabled (#32731) 2024-04-19 17:03:10 +05:30
support chore: Change wait for viewPage in EditAppFromSearch to getConsolidatedData (#32856) 2024-04-23 10:35:57 +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
setup-test.sh
tags.js CI: Add tags to to cypress tags (#32843) 2024-04-22 15:42:53 +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