- 在 .env 文件中添加 ACCOUNT 和 PASSWORD 环境变量 - 更新 baseFixture 中的 page.goto 方法,使用 baseURL 配置 - 移除 exportFixture 中未使用的 baseTest - 在 LoginPage 中添加 tenant 参数以支持多租户登录 - 更新 login.spec 中的测试用例,使用环境变量配置 - 调整 setup.ts 中的登录流程,使用新的登录方法
10 lines
204 B
TypeScript
10 lines
204 B
TypeScript
import { mergeTests } from '@playwright/test';
|
|
import { test as loginTest } from '../fixtures/loginFixture';
|
|
|
|
export const test = mergeTests(
|
|
loginTest
|
|
);
|
|
|
|
export { expect } from '@playwright/test';
|
|
|