fix: remove unused function and fix lint warning

- Remove unused login helper in portfolio.spec.ts
- Add eslint-disable for useEffect in history page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
zephyrdark 2026-02-03 12:30:54 +09:00
parent efcfc0e090
commit 926958c15a
2 changed files with 1 additions and 11 deletions

View File

@ -1,16 +1,5 @@
import { test, expect } from "@playwright/test";
// Helper to login before tests
async function login(page: import("@playwright/test").Page) {
await page.goto("/login");
await page.fill('input[name="username"]', "testuser");
await page.fill('input[name="password"]', "testpassword");
await page.click('button[type="submit"]');
// Wait for redirect to dashboard or portfolio page
await page.waitForURL(/\/(portfolio)?$/);
}
test.describe("Portfolio", () => {
test.beforeEach(async ({ page }) => {
// Mock login - in real tests, use proper authentication

View File

@ -89,6 +89,7 @@ export default function PortfolioHistoryPage() {
useEffect(() => {
fetchData();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [portfolioId]);
const handleCreateSnapshot = async () => {