PromucFlow_constructor/app/client/test
Hetu Nandu 92ff6a9c7d
chore: Add tests for useGetPageFocusUrl hook (#32107)
## Description

- Create a new hookWrapper util to enable hook testing with redux state
- Create a util function to create EditorState Focus Info
- Small refactor of `useGetPageFocusUrl` hook
- Adds tests for `useGetPageFocusUrl` hook

Fixes #31871 

## Automation

/ok-to-test tags="@tag.IDE"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> Tests running at:
<https://github.com/appsmithorg/appsmith/actions/runs/8451092610>
> Commit: `a4660177de70be17d94928eef4fbe29a37f1a1d5`
> Workflow: `PR Automation test suite`
> Tags: `@tag.IDE`

<!-- 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 a function to streamline the creation of editor focus
information, enhancing navigation within the IDE.
- **Refactor**
- Refactored logic for setting focus page URLs in the IDE, improving the
accuracy and reliability of navigation.
- **Tests**
- Added tests for the `useGetPageFocusUrl` hook, ensuring URL generation
behaves as expected.
- **Chores**
- Updated utility functions for IDE tests, facilitating better test
setup and execution.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-27 12:00:31 +00:00
..
__mocks__ fix: Adjust autocomplete results ranking for function arguments (#28632) 2023-11-10 14:18:42 +05:30
factories chore: Add tests for useGetPageFocusUrl hook (#32107) 2024-03-27 12:00:31 +00:00
customQueries.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
sagas.ts chore: Remove unused services (#30292) 2024-01-23 05:43:16 +05:30
setup.ts chore: Add SAVE_ACTION analytics event (#25997) 2023-08-07 15:01:45 +05:30
testCommon.ts chore: [chart widget] show configuration errors only in editor (#32024) 2024-03-26 09:49:58 +05:30
testMockedWidgets.tsx fix: Stale Page Flicker Bug on switching pages. (#30206) 2024-01-11 11:13:29 +05:30
testUtils.tsx chore: Add tests for useGetPageFocusUrl hook (#32107) 2024-03-27 12:00:31 +00:00