Commit graph

65 commits

Author SHA1 Message Date
cristhianzl
f13d7ecab4 fix zustand 2024-03-28 11:59:32 -03:00
Gabriel Luiz Freitas Almeida
6737c845eb Refactor code and fix formatting issues 2024-03-27 23:46:11 -03:00
anovazzi1
7ea25b52f1 Refactor group.spec.ts test case 2024-03-27 18:00:40 -03:00
cristhianzl
a99612af3b (playwright.config.ts): set the number of workers to 2 to improve test parallelization
📝 (API/index.ts): remove conditional return of 100 for getRepoStars function to ensure accurate retrieval of stargazers count from GitHub API
📝 (API/index.ts): remove conditional return of example data for getExamples function to ensure accurate retrieval of examples from GitHub API
📝 (auto_login.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (codeAreaModalComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (dragAndDrop.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (dropdownComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (floatComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (flowPage.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (group.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (inputComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (intComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (keyPairListComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (langflowShortcuts.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (nestedComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (promptModalComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues

 (saveComponents.spec.ts): update page.goto() URL to include the correct protocol and port for the frontend app
 (toggleComponent.spec.ts): update page.goto() URL to include the correct protocol and port for the frontend app
2024-03-27 17:04:19 -03:00
cristhianzl
4d0a1616bb remove location 2024-03-27 16:56:54 -03:00
cristhianzl
0bbd77afd0 merge fix 2024-03-27 16:29:48 -03:00
cristhianzl
cfc2913e9c merge fix 2024-03-27 16:29:32 -03:00
cristhianzl
735c1808b2 (parameterComponent/index.tsx): add data-testid attributes to improve testability and accessibility
 (codeTabsComponent/index.tsx): add componentName prop to InputListComponent to improve testability and accessibility
 (inputListComponent/index.tsx): add componentName prop to improve testability and accessibility
 (textAreaComponent/index.tsx): add data-testid attribute to IconComponent to improve testability and accessibility
 (EditNodeModal/index.tsx): add componentName prop to InputListComponent to improve testability and accessibility
 (DisclosureComponent/index.tsx): add data-testid attribute to Disclosure.Button to improve testability and accessibility
 (components/index.ts): add componentName prop to InputListComponentType to improve testability and accessibility
 (codeAreaModalComponent.spec.ts): reduce wait time for better test performance
 (dragAndDrop.spec.ts): reduce wait time for better test performance

 (dropdownComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (dropdownComponent.spec.ts): add new test file filterEdge.spec.ts to test filtering functionality in dropdown component
 (filterEdge.spec.ts): add tests for tooltip and filter functionality in dropdown component

 (floatComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (flowPage.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (group.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (inputComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance

 (inputListComponent.spec.ts): add end-to-end test for InputListComponent to ensure proper functionality
 (intComponent.spec.ts): add end-to-end test for IntComponent to ensure proper functionality
 (keyPairListComponent.spec.ts): add end-to-end test for KeyPairListComponent to ensure proper functionality
 (nestedComponent.spec.ts): add end-to-end test for NestedComponent to ensure proper functionality

 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (textAreaModalComponent.spec.ts): add test for TextAreaModalComponent
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
2024-03-27 16:11:59 -03:00
Gabriel Luiz Freitas Almeida
f19c449f15
Add Frontend Tests (#1571)
* Add TypeScript test workflow

* Update follow-redirects and katex versions

* Add Python setup and Poetry installation for backend

* Update Poetry version and setup Python in workflows

* Add Poetry installation step to GitHub Actions workflow

* Add Playwright report artifact upload and improve test script

* Update Playwright test configuration and add global teardown script

* Update path for playwright-report directory

* Update timeout value in playwright.config.ts

* Update page URLs in end-to-end tests

* Update GitHub Actions workflow and Playwright configuration

* Update TypeScript test workflow

* Add pattern and merge-multiple options to artifact download

* Update TypeScript test workflow to install Poetry

* Add cache steps for Playwright and Poetry

* Update PLAYWRIGHT_BROWSERS_PATH in TypeScript test workflow

* Add 'stuff/' to .gitignore

* Remove caching of Poetry virtualenv

* Update frontend tests to use Playwright for UI testing

* Add global teardown for removing temp database

* Add cache-hit condition to setup-node and setup-python steps

* Add new file to .gitignore and update ignored files

* Update playwright cache key in TypeScript test workflow

* Update path for blob-report in GitHub workflow

* Update path for playwright cache

* Update dependency installation in workflows

* Update baseURL in playwright.config.ts

* Update baseURL in playwright.config.ts

* Refactor test timeouts

* Remove playwright-report index.html file

* Add npm run start command to playwright.config.ts

* Update npm start command in playwright.config.ts

* Update Playwright browser caching and installation

* Update playwright cache path

* Update playwright cache path

* Update actions/cache version to v4

* Update Playwright cache key to use package-lock.json

* Update Playwright cache and install dependencies

* Fix typo in Playwright installation command

* Fix npm ci command in TypeScript test workflow

* Update TypeScript test workflow
2024-03-27 14:27:40 -03:00
anovazzi1
a6d42c043c check edge case when options is empty 2024-03-26 14:25:49 -03:00
anovazzi1
1cdaa284d6 add utf-8 characters to inputCOmponent test 2024-03-26 13:23:50 -03:00
Matheus Jacques
8172e62236
Split Langflow into Langflow and Langflow Base (#1562)
* Initial Restructure

* Replace import langflow for import langflow_base

* Fix dependencies

* 🔧 chore(Makefile): refactor build process to separate base and frontend builds for better organization and maintainability

* 🚀 chore(Makefile): update build_frontend command to copy frontend build to the correct directory
🔖 chore(pyproject.toml): update python and httpx dependencies versions
🔧 chore(__init__.py): update import statement for load_flow_from_json function

* 🔖 chore(pyproject.toml): update package version from 0.0.6 to 0.0.8 to reflect changes in the codebase

* 🚀 feat(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
🚀 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port

* 🐛 fix(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10
 feat(server.ts): add new agent component LCAgentComponent to langflow_base
 feat(server.ts): add new model component LCModelComponent to langflow_base
 feat(server.ts): add new helper functions docs_to_records and records_to_text to langflow_base
 feat(server.ts): add new flow helper functions list_flows, load_flow, run_flow, generate_function_for_flow, get_flow_inputs, build_schema_from_inputs to langflow_base
 feat(server.ts): add new prompt component PromptComponent to langflow_base
 feat(server.ts): add new chat components ChatInput and ChatOutput to langflow_base
 feat(server.ts): add new model component OpenAIModelComponent to langflow_base
🚚 chore(main.py): update import path from langflow.main to langflow_base.main
🚚 chore(service.py): update import path from langflow.services.database.manager to langflow_base.services.database.manager
🚚 chore(factory.py): update import path from langflow.services to langflow_base.services
🚚 chore(service.py): update import path from langflow.services.plugins to langflow_base.services.plugins
🚚 chore(utils.py): update import path from langflow.services to langflow_base.services
🚚 chore(validate.py): update import path from langflow.field_typing to langflow_base.field_typing
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10

* Update Makefile to install backend dependencies and build langflow

* Add langflow main module and update __init__.py

* Update langflow install process to use implicit namespace

* Add langflow-base as a local dependency

* Add setup_poetry target to Makefile

* Update Poetry version and add poetry-monorepo-dependency-plugin

* Refactor code to improve performance and readability

* Update imports to custom and load

* Update content-hash in poetry.lock

---------

Co-authored-by: Matheus <jacquesmats@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
2024-03-26 09:26:30 -03:00
cristhianzl
70c083451e 📝 (index.tsx): add data-testid attributes to the toolbar select items to improve testability
♻️ (toolbarSelectItem/index.tsx): remove unused import and refactor code to include data-testid attribute in the rendered element
📝 (index.ts): add dataTestId property to the toolbarSelectItemProps type to reflect the addition of data-testid attribute in the component
📝 (auto_login.spec.ts): increase timeout for page.waitForTimeout to 16 seconds and test.setTimeout to 140 seconds to accommodate slower test execution
📝 (keyPairListComponent.spec.ts): increase timeout for page.waitForTimeout to 20 seconds to accommodate slower test execution
2024-03-15 15:56:13 -03:00
cristhianzl
92aa159f39 add configuration to run all tests 2024-03-11 19:07:43 -03:00
cristhianzl
ea8b5faad2 check SO before add keyboard command 2024-03-09 09:30:32 -03:00
cristhianzl
2d6a1d193f 🔧 fix(NewFlowCard2): add missing data-testid attribute to the NewFlowCardComponent to improve testability
🔧 fix(nodeToolbarComponent): add missing data-testid attribute to the save button to improve testability
🔧 fix(nodeToolbarComponent): add missing data-testid attribute to the edit button to improve testability
🔧 fix(nodeToolbarComponent): add missing data-testid attribute to the duplicate button to improve testability
🔧 fix(codeAreaModalComponent.spec): add click on the blank-flow element before performing other actions to ensure proper test setup
🔧 fix(dropdownComponent.spec): add click on the blank-flow element before performing other actions to ensure proper test setup
🔧 fix(floatComponent.spec): add click on the blank-flow element before performing other actions to ensure proper test setup
🔧 fix(flowPage.spec): add click on the blank-flow element before performing other actions to ensure proper test setup
🔧 fix(group.spec): add click on the blank-flow element before performing other actions to ensure proper test setup
🔧 fix(inputComponent.spec): add click on the blank-flow element before performing other actions to ensure proper test setup
🔧 fix(intComponent.spec): add click on the blank-flow element before performing other actions to ensure proper test setup

🐛 fix(keyPairListComponent.spec.ts): update key pair IDs and values to match test expectations
 feat(keyPairListComponent.spec.ts): add support for dynamic key pair creation and deletion
🔀 merge(langflowShortcuts.spec.ts): add end-to-end tests for langflow shortcuts
🔀 merge(nestedComponent.spec.ts): add end-to-end tests for nested components
🔀 merge(promptModalComponent.spec.ts): add end-to-end tests for prompt modal component
🔀 merge(saveComponents.spec.ts): add end-to-end tests for save components

 test(toggleComponent.spec.ts): add test case to simulate clicking on "blank-flow" element and waiting for 2 seconds
🐛 fix(toggleComponent.spec.ts): fix typo in test case, change "locator" to "waitForSelector" for better readability
2024-03-08 18:05:19 -03:00
Gabriel Luiz Freitas Almeida
4daf4ffc81 Fix variable name and simplify if statements 2024-03-06 14:56:36 -03:00
cristhianzl
2be300b158 🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts): remove unnecessary code that clicks and checks showcode element
🔧 fix(codeAreaModalComponent.spec.ts

🐛 fix(intComponent.spec.ts): fix test case for IntComponent to use correct input field and update assertions
 feat(intComponent.spec.ts): add additional test cases for IntComponent to cover more scenarios and improve test coverage
2024-03-05 14:42:07 -03:00
cristhianzl
2190d65c59 fix tests 2024-02-29 19:15:00 -03:00
cristhianzl
066a5969e7 fix all the tests 2024-02-29 18:42:24 -03:00
cristhianzl
b83a18bcc9 add draganddrop test 2024-02-29 17:01:19 -03:00
anovazzi1
3188103e61 migrate tests to be e2e 2024-02-28 15:54:55 -03:00
cristhianzl
a999f46328 🐛 fix(parameterComponent): add missing prop 'editNode' to ParameterToggleComponent
🐛 fix(inputComponent): add missing data-testid prop to InputComponent
🐛 fix(intComponent): add missing data-testid prop to IntComponent
🐛 fix(toggleShadComponent): add missing data-testid prop to ToggleShadComponent
🐛 fix(ConfirmationModal): add missing data-testid prop to replace button
🐛 fix(EditNodeModal): add missing 'editNode' prop to ParameterToggleComponent and InputComponent
🐛 fix(nodeToolbarComponent): remove duplicate import statement
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary import statement
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix(nodeToolbarComponent): remove unnecessary line break
🐛 fix

🐛 fix(group.spec.ts): uncomment code to enable mocking API requests for testing purposes
🐛 fix(group.spec.ts): fix incorrect URL pattern in page.routeFromHAR() method
🐛 fix(group.spec.ts): fix incorrect URL pattern in page.route() method
 feat(group.spec.ts): add fulfillment of API request with a JSON response and status 201
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability
🐛 fix(inputComponent.spec.ts): update locator IDs to match changes in HTML structure
 feat(inputComponent.spec.ts): add support for getting elements by test ID for improved test readability

🐛 fix(nestedComponent.spec.ts): fix incorrect assertions for checkbox states
 feat(nestedComponent.spec.ts): add tests for new checkboxes in nestedComponent
🐛 fix(toggleComponent.spec.ts): fix incorrect assertions for checkbox states
 feat(toggleComponent.spec.ts): add tests for new checkboxes in toggleComponent
2024-02-26 19:58:08 -03:00
cristhianzl
1b7d80a373 🐛 fix(parameterComponent): fix key prop in map function to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in InputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in ToggleShadComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in Dropdown component to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix

🔧 chore(dropdownComponent.spec.ts): comment out unused code to improve code readability and maintainability
🔧 chore(floatComponent.spec.ts): comment out unused code to improve code readability and maintainability
🔧 chore(flowPage.spec.ts): comment out unused code to improve code readability and maintainability
🔧 chore(group.spec.ts): comment out unused code to improve code readability and maintainability

🔧 chore(tests): comment out unused code in inputComponent.spec.ts, intComponent.spec.ts, keyPairListComponent.spec.ts, nestedComponent.spec.ts, saveComponents.spec.ts, and toggleComponent.spec.ts to improve code readability and reduce noise
2024-02-23 18:05:39 -03:00
cristhianzl
fb98cc6e51 start fix tests 2024-02-23 12:30:30 -03:00
Gabriel Luiz Freitas Almeida
392b81b519 Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes"
This reverts commit f3b3d2cf68.
2024-02-05 19:02:34 -03:00
Gabriel Luiz Freitas Almeida
f3b3d2cf68
Revert "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 18:29:03 -03:00
Gabriel Luiz Freitas Almeida
c0c64c99c9 Update imports to use langchain_core.documents 2024-02-01 09:37:37 -03:00
Gabriel Luiz Freitas Almeida
87d2db11ac Merge remote-tracking branch 'origin/dev' into update_lc 2024-01-24 19:22:22 -03:00
cristhianzl
0f0488e59a fix(parameterComponent): update id and data-testid for textarea component to use the name of the parameter instead of index
fix(EditNodeModal): update id and data-testid for textarea component to use the name of the template parameter instead of index
fix(promptModalComponent.spec): update data-testid for textarea components to use the name of the prompt instead of index
fix(group.spec): update data-testid for textarea component to use a more descriptive name instead of index
fix(saveComponents.spec): update data-testid for textarea component to use a more descriptive name instead of index
2024-01-18 18:18:18 -03:00
anovazzi1
35a0a344dd Fix drag and click behavior in nestedComponent.spec.ts 2024-01-17 19:01:32 -03:00
Lucas Oliveira
7ada6f20ac Merge branch 'cz/bug/state/zustand' into update_lc 2024-01-17 19:44:30 +01:00
cristhianzl
4ebbafe493 fix(components): add data-testid to edit flow button for better testability and identification
fix(dragAndDrop.spec): update locator for edit flow button to use data-testid for better stability
fix(group.spec): update locator for edit flow button to use data-testid for better stability
fix(saveComponents.spec): update locator for edit flow button to use data-testid for better stability
2024-01-15 22:31:46 -03:00
Gabriel Luiz Freitas Almeida
8e32b5e6ea Fix import statement in custom_component_full.ts 2024-01-09 10:17:21 -03:00
Gabriel Luiz Freitas Almeida
13783c1c60 Format json file 2023-12-22 10:39:43 -03:00
cristhianzl
45479222d7 fix(frontend): fix save component test by removing unnecessary steps and fixing selectors
feat(frontend): add test for saving components and verifying their presence in the flow
feat(frontend): add test for grouping nodes and verifying the presence of the group node
feat(frontend): add test for saving default component with custom values and verifying the saved component
feat(frontend): add test for saving the same component multiple times and verifying their presence
feat(frontend): add test for saving default component and deleting it from the saved components list
2023-12-14 13:00:48 -03:00
Gabriel Luiz Freitas Almeida
6084825cbe Refactor code to improve performance and readability 2023-12-12 15:33:35 -03:00
Gabriel Luiz Freitas Almeida
2f8cb0d776 Add new files and update existing files 2023-12-12 15:33:10 -03:00
Gabriel Luiz Freitas Almeida
79b12b8135
Revert "Release 0.5.6" 2023-11-06 23:18:49 -03:00
cristhianzl
2fbb68d6a6 fix(keyPairListComponent.spec.ts): fix typo in test case description
fix(keyPairListComponent.spec.ts): update test case to fill input field with a value containing spaces for better coverage
fix(keyPairListComponent.spec.ts): add assertion to check if input field value with spaces is correctly filled
fix(keyPairListComponent.spec.ts): update test case to fill input field with a value containing spaces for better coverage
fix(keyPairListComponent.spec.ts): update assertion to check if input field value with spaces is correctly filled
2023-10-18 23:58:09 -03:00
anovazzi1
75c613c97e updated input component test 2023-10-18 17:07:44 -03:00
anovazzi1
5fd7cbdcb2 feat(tests): add toggleComponent.spec.ts to test the functionality of the ToggleComponent
The toggleComponent.spec.ts file contains a test case that verifies the functionality of the ToggleComponent. The test case performs the following actions:

1. Routes network requests from a HAR file, disabling updates for URLs matching "**/api/v1/**".
2. Routes a specific network request to return a JSON response with a status of 201.
3. Navigates to "http://localhost:3000/".
4. Waits for 2000 milliseconds.
5. Clicks on an element with the id "new-project-btn".
6. Waits for 2000 milliseconds.
7. Clicks on an element with the placeholder text "Search" and fills it with "directoryLoader".
8. Waits for 2000 milliseconds.
9. Drags an element with the id "sideDirectoryLoader" to another element with the id "react-flow-id".
10. Performs a series of click actions on various elements to test their functionality.
11. Verifies the state of toggle buttons using the isChecked() method.
12. Clicks on an element with the id "saveChangesBtn".
13. Performs additional click actions and verifications.
14. Clicks on an element with the id "saveChangesBtn".
15. Performs additional click actions and verifications.
16. Clicks on an element with the id "saveChangesBtn".
17. Performs additional click actions and verifications.
18. Clicks on an element with the id "saveChangesBtn".
19. Performs additional click actions and verifications.
20. Clicks on an element with the id "saveChangesBtn".
21. Performs additional click actions and verifications.
22. Verifies the count of elements matching the locator "//*[@id="toggle-1"]" and performs additional actions based on the count.

This test case is added to ensure that the ToggleComponent functions as expected and that the toggle buttons behave correctly.
2023-10-18 16:56:44 -03:00
anovazzi1
2fba3427fc sorting fields to keep the same order always and fixed group component tests' 2023-10-18 16:27:35 -03:00
anovazzi1
fcafd995ef moved group tests to only front 2023-10-18 16:18:46 -03:00
cristhianzl
1845149647 Merge branch 'feat-testComps' of https://github.com/logspace-ai/langflow into feat-testComps 2023-10-18 15:53:25 -03:00
cristhianzl
ad8183e598 fix(promptModalComponent.spec.ts): update element locators to match changes in HTML structure 2023-10-18 15:51:56 -03:00
anovazzi1
7e0b3684e4 Merge branch 'dev' into feat-testComps 2023-10-18 14:49:13 -03:00
anovazzi1
5a1ddfb9b3 fix(tabsContext.tsx): add console.log to debug text variable in TabsProvider
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a collection
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a flow
2023-10-17 21:47:13 -03:00
anovazzi1
d68f2cbbab feat(dragAndDrop.spec.ts): add tests for auto_login functionality
The `dragAndDrop.spec.ts` file was added to the `src/frontend/tests/onlyFront` directory. This file contains tests for the auto_login functionality. Two tests were added:

1. `auto_login sign in`: This test simulates signing in with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, waits for the ".community-pages-flows-panel" selector to be present, and asserts that it has children.

2. `auto_login block_admin`: This test simulates accessing the admin section with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, navigates to the login page, clicks on the "Community Examples" button again, navigates to the admin page, clicks on the "Community Examples" button again, navigates to the admin login page, and clicks on the "Community Examples" button.

These tests were added to ensure the proper functioning of the auto_login feature.
2023-10-17 21:47:13 -03:00
anovazzi1
f6d369dd7b created assets page 2023-10-17 21:47:13 -03:00