diff --git a/novalon-manage-web/.env.test b/novalon-manage-web/.env.test new file mode 100644 index 0000000..3026a06 --- /dev/null +++ b/novalon-manage-web/.env.test @@ -0,0 +1,10 @@ +# 测试环境配置 +VITE_API_BASE_URL=http://localhost:8084 +VITE_APP_TITLE=Novalon管理系统 - 测试环境 + +# 测试用户配置 +TEST_USER_PASSWORD=Test@123 + +# Playwright配置 +HEADLESS=true +SLOW_MO=0 diff --git a/novalon-manage-web/playwright.config.ts b/novalon-manage-web/playwright.config.ts index 62aeb2e..8765d22 100644 --- a/novalon-manage-web/playwright.config.ts +++ b/novalon-manage-web/playwright.config.ts @@ -53,6 +53,21 @@ export default defineConfig({ }, projects: [ + { + name: 'role-based-tests', + testDir: './e2e/role-based-tests/scenarios', + testMatch: /.*\.spec\.ts/, + use: { + ...devices['Desktop Chrome'], + launchOptions: { + args: [ + '--disable-blink-features=AutomationControlled', + '--disable-dev-shm-usage', + '--no-sandbox' + ] + } + }, + }, { name: 'chromium', use: {