Files
star-erp/e2e/warehouses.spec.ts
sky121113 197df3bec4
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s
[FIX] 修復所有 E2E 模組測試的標題定位器以及將測試帳號還原為 admin 權限
2026-03-09 16:53:06 +08:00

15 lines
527 B
TypeScript

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();
});
});