- 新增 .gitlab-ci.yml 文件,配置 GitLab CI/CD 管道 - 移除 AuthAccount 类中未使用的 indexedDBFile 属性 - 简化 baseFixture 中的测试初始化流程 - 更新 CustomerPage 中的顾客创建逻辑 - 调整 boss_cashier.spec.ts 中的二维码解码和输入值设置 - 新增 boss_test.spec.ts 文件,添加创建顾客的测试用例
29 lines
500 B
YAML
29 lines
500 B
YAML
stages:
|
|
- test
|
|
- report
|
|
|
|
playwright_tests:
|
|
stage: test
|
|
image: mcr.microsoft.com/playwright:focal
|
|
script:
|
|
- npm install
|
|
- npx playwright install
|
|
- npx playwright test
|
|
artifacts:
|
|
paths:
|
|
- test-results/
|
|
expire_in: 1 week
|
|
|
|
send_report:
|
|
stage: report
|
|
image: alpine:latest
|
|
script:
|
|
- apk add --no-cache curl
|
|
- |
|
|
if [ -d test-results ]; then
|
|
echo "Test Successful."
|
|
else
|
|
echo "No test results found."
|
|
fi
|
|
only:
|
|
- main |