import { test, expect } from '@playwright/test';
import { login } from './helpers/auth';

test.describe('倉庫管理模組', () => {
    test.beforeEach(async ({ page }) => {
        await login(page);
    });

    test('應能進入倉庫列表頁面並顯示主要元素', async ({ page }) => {
        await page.goto('/warehouses');
        await expect(page.getByRole('heading', { name: /倉庫管理/ })).toBeVisible();
        await expect(page.getByRole('button', { name: /新增倉庫/ })).toBeVisible();
    });
});
