- 添加项目配置文件和环境变量设置 - 创建测试用例目录结构和命名规范 - 实现基础测试 fixture 和页面对象模型 - 添加示例测试用例和数据生成器 - 配置 playwright 和 gitignore 文件
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { mergeTests, mergeExpects } from '@playwright/test';
|
|
import { test as cashierTest } from '@/fixtures/cashierFixture';
|
|
import { test as appointmentTest } from '@/fixtures/appointmentFixture';
|
|
import { test as wasteBookTest } from '@/fixtures/wasteBookFixture';
|
|
import { test as customerTest } from '@/fixtures/customerFixture';
|
|
import { test as inventoryTest } from '@/fixtures/inventoryFixture';
|
|
import { test as goalTest } from '@/fixtures/goalFixture';
|
|
import { test as reportTest, expect as reportExpect } from '@/fixtures/reportFixture';
|
|
import { test as marketingTest } from '@/fixtures/marketingFixture';
|
|
import { test as baseTest } from '@/fixtures/baseFixture';
|
|
import { test as tableTest } from '@/fixtures/tableFixture';
|
|
import { test as componentsTest } from '@/fixtures/componentsFixture';
|
|
|
|
export const test = mergeTests(
|
|
cashierTest,
|
|
appointmentTest,
|
|
customerTest,
|
|
wasteBookTest,
|
|
inventoryTest,
|
|
goalTest,
|
|
reportTest,
|
|
baseTest,
|
|
marketingTest,
|
|
tableTest,
|
|
componentsTest,
|
|
);
|
|
|
|
export const expect = mergeExpects(reportExpect);
|