Files
AITrader/tests/orders.test.ts
henry 2e22fd5635 feat: add stock detail page with chart, position, and orders
- Add /api/alpaca/orders endpoint for order history
- Add TradingView chart component for candlestick visualization
- Add /analyze/:ticker route with position and orders display
- Make ticker cells in analyze page clickable for navigation
2026-05-14 11:00:35 +02:00

8 lines
289 B
TypeScript

import { test, expect } from "@playwright/test";
test("GET /api/alpaca/orders returns orders list", async ({ page }) => {
const res = await page.request.get("/api/alpaca/orders");
expect(res.ok()).toBeTruthy();
const data = await res.json();
expect(data.orders).toBeDefined();
});