import { test, expect } from "@playwright/test"; test("landing page shows navbar and account info", async ({ page }) => { await page.goto("/"); // Check navbar is visible await expect(page.locator("nav >> text=AITrader")).toBeVisible(); await expect(page.locator("text=Stocks")).toBeVisible(); // Check account info is displayed await expect(page.locator("text=Trading Account")).toBeVisible(); await expect(page.locator("text=Cash")).toBeVisible(); await expect(page.locator("text=Buying Power")).toBeVisible(); await expect(page.locator("text=Portfolio Value")).toBeVisible(); }); test("navigation to stocks works", async ({ page }) => { await page.goto("/"); await page.click("text=Stocks"); await expect(page).toHaveURL("/stocks"); });