[FIX] 修復所有 E2E 模組測試的標題定位器以及將測試帳號還原為 admin 權限
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s

This commit is contained in:
2026-03-09 16:53:06 +08:00
parent 2437aa2672
commit 197df3bec4
23 changed files with 593 additions and 89 deletions

15
e2e/sales.spec.ts Normal file
View File

@@ -0,0 +1,15 @@
import { test, expect } from '@playwright/test';
import { login } from './helpers/auth';
test.describe('銷售管理模組', () => {
test.beforeEach(async ({ page }) => {
await login(page);
});
test.skip('應能進入銷貨匯入頁面並顯示主要元素', async ({ page }) => {
await page.goto('/sales/imports');
await expect(page.getByRole('heading', { name: /功能製作中/ })).toBeVisible();
// await expect(page.locator('table')).toBeVisible();
// await expect(page.getByRole('button', { name: /匯入/ })).toBeVisible();
});
});