langflow/src/frontend/tests/core/features
Gabriel Luiz Freitas Almeida 322e70ad49
test: add test id to frozen icon and streamline freeze functionality test (#8619)
* fix: add data-testid attribute to frozen icon in NodeOutputField component for improved testing

* refactor: simplify freeze.spec.ts by removing redundant component interactions and enhancing test clarity

- Removed unnecessary component interactions and waits to streamline the test flow.
- Updated assertions to ensure expected output values are validated correctly.
- Improved timeout settings for better reliability in test execution.

* refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability

- Updated the test to use waitForSelector instead of a fixed timeout, enhancing the robustness of the test execution.
- This change aims to ensure that the test waits for the specific element to be present before proceeding, reducing flakiness.

* Revert "refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability"

This reverts commit 42eccbfa0d7e7defba02ee3589535689556390bb.

* test: increase timeout for frozen icon selector to improve test reliability

* test: increase timeout for frozen icon selector to enhance reliability

* test: simplify frozen icon visibility check in freeze.spec.ts

* test: comment out frozen icon visibility check in freeze.spec.ts

* test: add assertion for initial output and enhance frozen icon visibility check in freeze.spec.ts

* test: replace fixed timeout with waitForSelector for improved frozen icon visibility check in freeze.spec.ts

* test: implement polling approach for frozen icon visibility check in freeze.spec.ts to enhance error handling and reliability

* [autofix.ci] apply automated fixes

* fix: add data-testid attribute to frozen icon in NodeOutputField component for improved testing

* refactor: simplify freeze.spec.ts by removing redundant component interactions and enhancing test clarity

- Removed unnecessary component interactions and waits to streamline the test flow.
- Updated assertions to ensure expected output values are validated correctly.
- Improved timeout settings for better reliability in test execution.

* refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability

- Updated the test to use waitForSelector instead of a fixed timeout, enhancing the robustness of the test execution.
- This change aims to ensure that the test waits for the specific element to be present before proceeding, reducing flakiness.

* Revert "refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability"

This reverts commit 42eccbfa0d7e7defba02ee3589535689556390bb.

* test: increase timeout for frozen icon selector to improve test reliability

* test: increase timeout for frozen icon selector to enhance reliability

* test: simplify frozen icon visibility check in freeze.spec.ts

* test: comment out frozen icon visibility check in freeze.spec.ts

* test: add assertion for initial output and enhance frozen icon visibility check in freeze.spec.ts

* test: replace fixed timeout with waitForSelector for improved frozen icon visibility check in freeze.spec.ts

* test: implement polling approach for frozen icon visibility check in freeze.spec.ts to enhance error handling and reliability

* [autofix.ci] apply automated fixes

*  (freeze.spec.ts): add a 1-second delay before making the final assertion to ensure the element is fully rendered before checking its visibility

*  (nodeToolbarComponent/index.tsx): add data-testid attribute to freeze button for better testing
🐛 (freeze.spec.ts): update test to use new data-testid for freeze button to ensure proper element selection

*  (nodeToolbarComponent/index.tsx): add functionality to take a snapshot when freezing all vertices in the flow.

*  (component_freeze.spec.ts): add test case for freezing a component to ensure user can freeze components in the application and verify the frozen state with polling approach for better error handling.

*  (component_freeze.spec.ts): refactor frozen icon visibility check to use waitForSelector for improved reliability and error handling, replacing the previous polling approach.

*  (component_freeze.spec.ts): update timeout values to improve test reliability and stability

*  (freeze.spec.ts): add test case for freezing a component in the application to ensure the functionality works as expected

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
2025-06-20 18:24:05 +00:00
..
actionsMainPage-shard-1.spec.ts feat: add bulk download and delete flows (#7849) 2025-05-13 18:58:02 +00:00
auto-login-off.spec.ts feat: adds new Edit Details popover, removes flow menu, fixes nav alignment, adds new Flow Status overlay (#8087) 2025-05-22 14:44:25 +00:00
chatInputOutputUser-shard-0.spec.ts refactor: Improve Reactflow wrapping around toolbars, canvas controls, etc (#8130) 2025-05-21 18:46:46 +00:00
componentHoverAdd.spec.ts feat: create an IO Category (#8229) 2025-05-30 17:58:34 +00:00
composio.spec.ts fix: Enhance Gmail API Component with Field Extraction, Add Flow Locking, and Improve Test Stability (#7864) 2025-04-30 15:21:28 -03:00
customComponentAdd.spec.ts fix: make code button flash, fix mcp icon color (#7848) 2025-04-29 19:37:09 +00:00
filterEdge-shard-0.spec.ts feat: deprecate Parsing component and replace them in starter projects (#6697) 2025-03-31 13:57:30 -03:00
filterSidebar.spec.ts fix: Split text should only have dataframe output (#8362) 2025-06-10 19:21:15 +00:00
folders.spec.ts feat: Add MCP Server Settings to projects, rename Folder to Project (#7741) 2025-04-29 14:14:55 -03:00
freeze-path.spec.ts fix: Remove the dataframe output from structured (#8233) 2025-06-10 22:03:54 +00:00
freeze.spec.ts test: add test id to frozen icon and streamline freeze functionality test (#8619) 2025-06-20 18:24:05 +00:00
globalVariables.spec.ts feat: add models category (#8231) 2025-05-28 18:09:15 +00:00
group.spec.ts feat: Outputs UX improvements (#8131) 2025-05-27 19:03:11 +00:00
keyboardComponentSearch.spec.ts feat: create an IO Category (#8229) 2025-05-30 17:58:34 +00:00
logs.spec.ts feat: adds new Edit Details popover, removes flow menu, fixes nav alignment, adds new Flow Status overlay (#8087) 2025-05-22 14:44:25 +00:00
playground.spec.ts feat: Update components input/output display name and descriptions (#8284) 2025-06-03 17:52:21 +00:00
publish-flow.spec.ts feat: create an IO Category (#8229) 2025-05-30 17:58:34 +00:00
saveComponents.spec.ts feat: Outputs UX improvements (#8131) 2025-05-27 19:03:11 +00:00
stop-building.spec.ts build(deps-dev): bump brace-expansion from 1.1.11 to 1.1.12 in /src/frontend (#8500) 2025-06-12 11:34:00 +00:00
store-shard-2.spec.ts feat: adds new Edit Details popover, removes flow menu, fixes nav alignment, adds new Flow Status overlay (#8087) 2025-05-22 14:44:25 +00:00
toolModeGroup.spec.ts feat: Outputs UX improvements (#8131) 2025-05-27 19:03:11 +00:00
tweaksTest.spec.ts fix: add selected_output field to components & templates to prevent disconnected edges (#8444) 2025-06-13 15:51:37 +00:00
user-flow-state-cleanup.spec.ts feat: adds new Edit Details popover, removes flow menu, fixes nav alignment, adds new Flow Status overlay (#8087) 2025-05-22 14:44:25 +00:00
user-progress-track.spec.ts fix: re-add name and description editing on tool mode except for Composio, fix MCP server code (#7901) 2025-05-05 21:20:19 +00:00
voice-assistant.spec.ts feat: voice mode (#4642) 2025-03-20 00:05:55 +00:00