How snaik-aziro/figma-to-testcases works
QA Test Generator turns Figma designs and requirement documents into functional, visual, accessibility, and edge-case tests, with requirement traceability and coverage reporting. The primary workflow is to supply design and PRD inputs, analyze them, generate tests for a screen, then review and export results; users can also give manual feedback for a one-shot re-evaluation. The repository has both an Angular client and a Streamlit interface backed by a FastAPI server. The documented baseline-knowledge capability is not represented by a source file in the supplied tree, so it is not mapped as an implementation node.
Main entry points: server.py FastAPI Server · demo_ui.py Streamlit UI · app.ts Angular App · design-files.ts Design Intake
Components 20
User Interfaces
- Angular App
qa-ui/src/app/app.ts - Design Intake
qa-ui/src/app/components/design-files/design-files.ts - Figma Panel
qa-ui/src/app/components/design-files/df-figma-panel/df-figma-panel.ts - JSON Panel
qa-ui/src/app/components/design-files/df-json-panel.component/df-json-panel.component.ts - PRD Upload
qa-ui/src/app/components/prd-upload/prd-upload.ts - Review and Run
qa-ui/src/app/components/review-and-run/review-and-run.ts - API Client
qa-ui/src/app/services/api-service/api-service.ts - Session Storage
qa-ui/src/app/shared/services/storage-service.ts - Streamlit UI
demo_ui.py
Design and Requirements
- Figma API
app/services/figma_client.py - Figma Cache
app/services/cache_manager.py - Document Parser
app/services/document_parser.py - PRD Analyzer
app/services/prd_analyzer.py
Test Generation
- Test Generation
app/services - Test Evaluation
app/services/evaluator.py - Feedback Runs
app/services/feedback_manager.py
API and State
- FastAPI Server
server.py - Configuration
app/config.py - Data Models
app/models/database.py
Other components
- QA User
Connections 32
- QA User → Angular App: uses
README.md - QA User → Streamlit UI: uses
README.md - Angular App → Design Intake: routes to
- Angular App → PRD Upload: routes to
- Angular App → Review and Run: routes to
- Design Intake → Figma Panel: renders
qa-ui/src/app/components/design-files/design-files.ts - Design Intake → JSON Panel: renders
qa-ui/src/app/components/design-files/design-files.ts - Design Intake → Session Storage: stores design data
qa-ui/src/app/components/design-files/design-files.ts - Figma Panel → API Client: fetches designs
qa-ui/src/app/components/design-files/df-figma-panel/df-figma-panel.ts - JSON Panel → Session Storage: stores JSON
qa-ui/src/app/components/design-files/df-json-panel.component/df-json-panel.component.ts - PRD Upload → API Client: analyzes files
qa-ui/src/app/components/prd-upload/prd-upload.ts - PRD Upload → Session Storage: stores PRD metadata
qa-ui/src/app/components/prd-upload/prd-upload.ts - Review and Run → API Client: requests tests
qa-ui/src/app/components/review-and-run/review-and-run.ts - API Client → FastAPI Server: HTTP requests
qa-ui/src/app/services/api-service/api-service.ts - Streamlit UI → Figma API: uses
demo_ui.py - Streamlit UI → Figma Cache: uses
demo_ui.py - Streamlit UI → Document Parser: uses
demo_ui.py - Streamlit UI → PRD Analyzer: uses
demo_ui.py - Streamlit UI → Test Generation: generates tests
demo_ui.py - Streamlit UI → Test Evaluation: evaluates tests
demo_ui.py - Streamlit UI → Data Models: uses
demo_ui.py - FastAPI Server → Figma API: uses
server.py - FastAPI Server → Figma Cache: reads and writes cache
server.py - FastAPI Server → Document Parser: parses PRD
server.py - FastAPI Server → PRD Analyzer: analyzes PRD
server.py - FastAPI Server → Test Generation: generates tests
server.py - FastAPI Server → Feedback Runs: stores run metadata
server.py - FastAPI Server → Configuration: uses settings
server.py - Document Parser → Data Models: uses models
app/services/document_parser.py - Figma API → Configuration: loads settings
app/services/figma_client.py - Test Evaluation → Configuration: loads settings
app/services/evaluator.py - FastAPI Server → Test Evaluation: evaluates runs