langflow/src/frontend/tests/core/unit
Cristhian Zanforlin Lousa ab68e13493
test: Add utility functions to streamline test setup and improve maintainability (#5168)
* change tests to use utils libs

* 🔧 (frontend): add data-testid attribute to buttons in baseModal and secretKeyModal components
🔧 (frontend): add data-testid attribute to buttons in various test files for improved testing
🔧 (frontend): refactor awaitBootstrapTest function to remove skipNewFlow option and improve modal handling

*  (userSettings.spec.ts): add a 1-second timeout before checking for the "Please save" text to ensure it is rendered on the page before interacting with it

*  (userSettings.spec.ts): add comment to clarify waiting for API key creation to complete before proceeding to the next form element

*  (freeze-path.spec.ts): refactor adjustScreenView function to accept a parameter for the number of zoom outs to perform, improving flexibility and reusability in test scenarios.
🔧 (freeze-path.spec.ts): replace adjustScreenView function with initialGPTsetup function for setting up initial GPT configuration in the test scenario.
2024-12-09 20:30:56 +00:00
..
chatInputOutput.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
codeAreaModalComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
dropdownComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
fileUploadComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
floatComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
inputComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
inputListComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
intComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
keyPairListComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
linkComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
nestedComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
promptModalComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
sliderComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
tableInputComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
textAreaModalComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00
toggleComponent.spec.ts test: Add utility functions to streamline test setup and improve maintainability (#5168) 2024-12-09 20:30:56 +00:00