- Added vitest imports to various dataset test files for improved testing capabilities.
- Ensured consistency in test structure across files by incorporating beforeEach, describe, expect, and it functions.
- Introduced new test files for ChunkLabel, ChunkContainer, QAPreview, DatasetsLoading, NoLinkedAppsPanel, ApiIndex, and several document-related components.
- Enhanced test coverage by validating rendering, user interactions, and edge cases for each component.
- Ensured proper functionality of user interactions, such as rendering conditions and state management, improving the reliability and maintainability of dataset-related features.
- Refactored test files for data source options, drawer, and pipeline settings to utilize Vitest for improved testing capabilities.
- Ensured consistent testing practices across components by importing necessary Vitest functions.
- Added new tests for the StepTwo component, covering user interactions with the QA checkbox and file picker functionality.
- Improved test coverage for the segment list content, ensuring proper handling of click events on segment cards.
- Introduced tests for the useChildSegmentData hook, validating cache updates and scroll behavior based on child segment changes.
These enhancements improve the reliability and maintainability of dataset creation and document management features.
- Introduced new test files for Dataset Settings Flow, Metadata Management Flow, and Pipeline Data Source Store Composition.
- Enhanced test coverage by validating cross-module interactions, data contracts, and state management across various components.
- Ensured proper handling of user interactions and configuration cascades in the dataset settings and metadata management processes.
These additions improve the reliability and maintainability of dataset-related features.
- Moved unit tests for child components (usePreviewState, DataSourceTypeSelector, NextStepButton, PreviewPanel) to dedicated spec files for better organization.
- Added new tests for the StepTwo component, covering rendering, user interactions, and state management.
- Improved test coverage for CrawledResultItem, ensuring proper handling of checkbox interactions.
- Updated tests for MenuBar and other components to validate user interactions and rendering.
These changes enhance the maintainability and reliability of the dataset creation and processing features.
- Introduced new test files for CheckboxWithLabel, CrawledResultItem, ErrorMessage, and various components related to website crawling and document preview.
- Enhanced test coverage by validating rendering, user interactions, and edge cases for each component.
- Ensured proper functionality of user interactions such as checkbox selections, button clicks, and rendering of dynamic content.
These additions improve the reliability and maintainability of the website crawl and document preview features.
- Introduced new test files for DocumentList, IndexingProgressItem, RuleDetail, UpgradeBanner, and various utility functions related to the embedding process.
- Enhanced test coverage by validating rendering, user interactions, and edge cases for each component.
- Ensured proper functionality of user interactions, such as button clicks and state changes, as well as validation of parameters in hooks and utilities.
These additions improve the reliability and maintainability of the embedding process and website features.
- Introduced new test files for DataSourceTypeSelector, NextStepButton, PreviewPanel, and various hooks related to document creation and indexing.
- Enhanced test coverage by validating rendering, user interactions, and edge cases for each component.
- Ensured proper functionality of user interactions such as button clicks and state changes, as well as validation of parameters in hooks.
These additions improve the reliability and maintainability of the dataset creation and processing features.
- Introduced new test files for Create Dataset Flow, Document Management Flow, External Knowledge Base Creation Flow, Hit Testing Flow, and Segment CRUD Flow.
- Validated cross-module interactions, data contracts, and API calls for dataset creation, document management, and hit testing functionalities.
- Enhanced test coverage by ensuring proper handling of user interactions, query submissions, and state management across various components.
These additions improve the reliability and maintainability of the dataset-related features.
- Introduced new test files for GeneralChunkingOptions, IndexingModeSection, Inputs, OptionCard, ParentChildOptions, and SummaryIndexSetting components.
- Enhanced test coverage by validating rendering, user interactions, and edge cases for each component.
- Ensured proper functionality of user interactions such as button clicks and state changes.
These additions improve the reliability and maintainability of the dataset creation feature.
- Updated tests for to ensure proper async behavior.
- Added comprehensive tests for , , and components, covering rendering, user interactions, and edge cases.
- Introduced new tests for , , and components, validating rendering and user interactions.
- Implemented tests for status filtering and document list query state to ensure correct functionality.
These changes improve test coverage and reliability across multiple components.