This commit migrates messages from the monitor service to the database. It adds a new function `migrate_messages_from_monitor_service_to_database` in the `utils.py` file, which retrieves messages from the monitor service, adds them to the database, and deletes them from the monitor service. This migration ensures that messages are stored in the database for better reliability and retrieval.
This commit imports the firecrawl integration package in the FirecrawlCrawlApi and FirecrawlScrapeApi files. It ensures that the package is available for use in the code. If the package is not installed, an ImportError is raised with instructions to install it using `pip install firecrawl-py`.
✅ (store.spec.ts): update test selector to use new data-testid attribute
♻️ (textInputOutput.spec.ts): refactor element selection and interaction logic for clarity and maintainability
💡 (textAreaWrapper): add data-testid attribute for better test targeting
✅ (actionsMainPage.spec.ts): add waitForSelector for better test stability
✅ (basicExamples.spec.ts): replace waitForTimeout with waitForSelector
✅ (basicExamples.spec.ts): use data-testid for chat input for consistency
✅ (memoryChatbot.spec.ts): replace waitForTimeout with waitForSelector
✅ (memoryChatbot.spec.ts): use data-testid for chat input for consistency
✅ (documentQA.spec.ts): replace waitForTimeout with waitForSelector
✅ (documentQA.spec.ts): use data-testid for chat input for consistency
✅ (vectorStoreRAG.spec.ts): replace waitForTimeout with waitForSelector
✅ (vectorStoreRAG.spec.ts): use data-testid for chat input for consistency
✅ (tests): add waitForSelector to ensure elements are loaded before interaction
✅ (tests): add waitForSelector for 'fit view' button in end-to-end tests
- Changed base class from CustomComponent to Component
- Added multiple input fields: message, sender, sender_name, session_id
- Included output field for stored messages
- Improved logic to handle both string and Message types
- Enhanced error handling and validation for message storage
✅ (basicExamples.spec.ts): add waitForSelector for 'fit view' to ensure element is loaded
✅ (basicExamples.spec.ts): add waitForSelector for 'built successfully' to ensure element is loaded
✅ (chatInputOutput.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (codeAreaModalComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (dropdownComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (fileUploadComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (filterEdge.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (filterEdge.spec.ts): update test expectations for 'disclosure-agents' to be visible
✅ (floatComponent.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (flowPage.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (folders.spec.ts): add waitForSelector for 'icon-ChevronLeft' to ensure element is loaded
✅ (folders.spec.ts): update folder name input and visibility check to improve reliability
✅ (generalBugs.spec.ts): add waitForSelector for 'extended-disclosure' to ensure element is loaded
✅ (tests): replace waitForTimeout with waitForSelector in end-to-end tests
Replace `waitForTimeout` with `waitForSelector` to improve test reliability and reduce flakiness.
📝 (memory.py): Refactor delete_messages function to use SQLAlchemy delete statement for better performance and readability
📝 (monitor/schema.py): Update MessageModel to use UUID type for id and flow_id for consistency and better data handling