test: Add Vitest configuration and initial tests for the DexScreener connect form.

This commit is contained in:
API Test Bot 2026-02-01 15:05:19 +07:00
parent 828d7d695a
commit fd9eddf7fa
11 changed files with 1480 additions and 116 deletions

View file

@ -6,7 +6,7 @@
**Story Title**: DexScreener Connector Frontend UI
**Epic**: SurfSense Connectors Enhancement
**Priority**: High
**Status**: Ready for Development
**Status**: ✅ Implementation Complete (2026-02-01)
**Created**: 2026-01-31
**Depends On**: Story 1.1 (Backend API)
@ -29,21 +29,21 @@ This story implements the user-facing components following SurfSense's establish
## ✅ Acceptance Criteria
### AC1: Connect Form Component
- [ ] User can access DexScreener connector from connector popup
- [ ] Form includes connector name field (min 3 characters)
- [ ] User can add multiple tokens (up to 50)
- [ ] Each token has: chain selector, token address input, optional name
- [ ] Form validates token addresses (40-character hex)
- [ ] User can remove tokens from list
- [ ] Date range selector for initial indexing
- [ ] Periodic sync toggle with frequency selector
- [ ] "What you get" benefits section displayed
- [ ] Form submits to backend API endpoint
### AC1: Connect Form Component
- [x] User can access DexScreener connector from connector popup
- [x] Form includes connector name field (min 3 characters)
- [x] User can add multiple tokens (up to 50)
- [x] Each token has: chain selector, token address input, optional name
- [x] Form validates token addresses (40-character hex)
- [x] User can remove tokens from list
- [x] Date range selector for initial indexing
- [x] Periodic sync toggle with frequency selector
- [x] "What you get" benefits section displayed
- [x] Form submits to backend API endpoint
### AC2: Token Management UI
- [ ] Dynamic token list with add/remove buttons
- [ ] Chain selector dropdown with popular chains:
### AC2: Token Management UI
- [x] Dynamic token list with add/remove buttons
- [x] Chain selector dropdown with popular chains:
- Ethereum
- BSC (Binance Smart Chain)
- Polygon
@ -52,42 +52,42 @@ This story implements the user-facing components following SurfSense's establish
- Base
- Avalanche
- Solana
- [ ] Token address input with validation
- [ ] Optional token name/label field
- [ ] Visual feedback for validation errors
- [ ] Responsive design for mobile/desktop
- [x] Token address input with validation
- [x] Optional token name/label field
- [x] Visual feedback for validation errors
- [x] Responsive design for mobile/desktop
### AC3: Connector Config Component
- [ ] Edit mode for existing connector
- [ ] Update connector name
- [ ] Add/remove tokens from tracked list
- [ ] View current token configuration
- [ ] Save changes button
- [ ] Cancel/discard changes option
### AC3: Connector Config Component
- [x] Edit mode for existing connector
- [x] Update connector name
- [x] Add/remove tokens from tracked list
- [x] View current token configuration
- [x] Save changes button
- [x] Cancel/discard changes option
### AC4: Connector Benefits
- [ ] Display benefits list in connect form
- [ ] Benefits include:
### AC4: Connector Benefits
- [x] Display benefits list in connect form
- [x] Benefits include:
- "Real-time cryptocurrency trading pair data"
- "Track prices, volume, and liquidity across multiple DEXs"
- "Search and analyze token market data with AI"
- "Monitor your crypto portfolio with automated updates"
- "Access historical price and volume trends"
### AC5: Documentation
- [ ] MDX documentation file created
- [ ] Setup guide with screenshots
- [ ] Token configuration instructions
- [ ] Chain selection guide
- [ ] Troubleshooting section
- [ ] Link to DexScreener API docs
### AC5: Documentation
- [x] MDX documentation file created
- [x] Setup guide with screenshots
- [x] Token configuration instructions
- [x] Chain selection guide
- [x] Troubleshooting section
- [x] Link to DexScreener API docs
### AC6: Integration
- [ ] Connector registered in connector registry
- [ ] Icon/logo added to public assets
- [ ] Connector appears in connector list
- [ ] Form properly integrated with connector popup
- [ ] Config component properly integrated
### AC6: Integration
- [x] Connector registered in connector registry
- [x] Icon/logo added to public assets
- [x] Connector appears in connector list
- [x] Form properly integrated with connector popup
- [x] Config component properly integrated
## 🏗️ Technical Implementation