import { test as dataTest, TestData } from './fixtures/test-data'; import { LoginPage } from './pages/LoginPage'; import { DashboardPage } from './pages/DashboardPage'; import { MemberManagementPage } from './pages/MemberManagementPage'; import { GroupCourseManagementPage } from './pages/GroupCourseManagementPage'; import { CoachManagementPage } from './pages/CoachManagementPage'; import { StatisticsDashboardPage } from './pages/StatisticsDashboardPage'; import { UserManagementPage } from './pages/UserManagementPage'; import { RoleManagementPage } from './pages/RoleManagementPage'; import { MenuManagementPage } from './pages/MenuManagementPage'; import { DictionaryManagementPage } from './pages/DictionaryManagementPage'; import { SystemConfigPage } from './pages/SystemConfigPage'; import { FileManagementPage } from './pages/FileManagementPage'; import { NotificationPage } from './pages/NotificationPage'; import { OperationLogPage } from './pages/OperationLogPage'; import { LoginLogPage } from './pages/LoginLogPage'; import { ExceptionLogPage } from './pages/ExceptionLogPage'; /** * 统一 Playwright fixtures。 * *
在 {@link TestData} 的基础上注入所有 Page Object,使新 E2E 用例不再直接写选择器。 * 测试文件统一通过 {@code import { test, expect } from '../fixtures'} 引入。
*/ type PageFixtures = { loginPage: LoginPage; dashboardPage: DashboardPage; memberManagementPage: MemberManagementPage; groupCourseManagementPage: GroupCourseManagementPage; coachManagementPage: CoachManagementPage; statisticsDashboardPage: StatisticsDashboardPage; userManagementPage: UserManagementPage; roleManagementPage: RoleManagementPage; menuManagementPage: MenuManagementPage; dictionaryManagementPage: DictionaryManagementPage; systemConfigPage: SystemConfigPage; fileManagementPage: FileManagementPage; notificationPage: NotificationPage; operationLogPage: OperationLogPage; loginLogPage: LoginLogPage; exceptionLogPage: ExceptionLogPage; }; export const test = dataTest.extend