ci: 更新 Playwright 测试工作流
- 在运行测试前添加环境变量输出,提高调试可读性 - 删除测试中不必要的日志输出
This commit is contained in:
5
.github/workflows/playwright.yaml
vendored
5
.github/workflows/playwright.yaml
vendored
@@ -42,7 +42,10 @@ jobs:
|
||||
# - name: 📥 安装 Playwright 浏览器
|
||||
# run: pnpm exec playwright install --with-deps
|
||||
- name: ▶️ 运行 Playwright 测试
|
||||
run: npx playwright test
|
||||
run: |
|
||||
echo "BASE_URL: ${{ needs.surge.outputs.url }}"
|
||||
echo "───────────────────────────────"
|
||||
npx playwright test
|
||||
env:
|
||||
BASE_URL: ${{ needs.surge.outputs.url }}
|
||||
|
||||
|
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
@@ -4,7 +4,6 @@
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
"simonhe.common-intellisense",
|
||||
"antfu.file-nesting",
|
||||
"oxc.oxc-vscode"
|
||||
]
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@ import { consola } from 'consola';
|
||||
|
||||
test('页面加载正常', async ({ page }, testInfo) => {
|
||||
await page.goto('/Home');
|
||||
consola.info(`page.url() === ${page.url()}`);
|
||||
|
||||
// await expect(page.getByRole('link', { name: '中文-页面.page.vue' })).toBeVisible();
|
||||
|
||||
|
Reference in New Issue
Block a user