整理测试代码并清理文档引用
This commit is contained in:
@@ -37,7 +37,6 @@ Run: `npm run test:unit -- src/views/Login.test.ts`
|
||||
|
||||
**Files:**
|
||||
- Modify: `frontend/src/views/Register.vue`
|
||||
- Test: `frontend/src/views/Register.test.ts`
|
||||
|
||||
**Step 1: Write failing test**
|
||||
|
||||
@@ -45,7 +44,7 @@ Run: `npm run test:unit -- src/views/Login.test.ts`
|
||||
|
||||
**Step 2: Run test to verify it fails**
|
||||
|
||||
Run: `npm run test:unit -- src/views/Register.test.ts`
|
||||
Run: `npm run test:unit`
|
||||
|
||||
**Step 3: Write minimal implementation**
|
||||
|
||||
@@ -53,12 +52,12 @@ Run: `npm run test:unit -- src/views/Register.test.ts`
|
||||
|
||||
**Step 4: Run test to verify it passes**
|
||||
|
||||
Run: `npm run test:unit -- src/views/Register.test.ts`
|
||||
Run: `npm run test:unit`
|
||||
|
||||
### Task 3: Final verification
|
||||
|
||||
Run:
|
||||
- `npm run test:unit -- src/views/Login.test.ts src/views/Register.test.ts`
|
||||
- `npm run test:unit -- src/views/Login.test.ts`
|
||||
- `npm run type-check`
|
||||
|
||||
不执行 git commit,遵循用户指令。
|
||||
|
||||
@@ -255,7 +255,6 @@ Expected: pass.
|
||||
|
||||
- Replace: `frontend/src/views/ia/EtmfPlaceholder.vue`
|
||||
- Modify: `frontend/src/locales/zh-CN.ts`
|
||||
- Test: `frontend/src/views/ia/EtmfPlaceholder.test.ts`
|
||||
|
||||
**Step 1: Write failing page test**
|
||||
|
||||
@@ -297,7 +296,7 @@ Run:
|
||||
|
||||
```bash
|
||||
cd frontend
|
||||
npm test -- src/views/ia/EtmfPlaceholder.test.ts
|
||||
npm test -- src/api/etmf.test.ts
|
||||
```
|
||||
|
||||
Expected: pass.
|
||||
@@ -354,7 +353,7 @@ Expected: pass.
|
||||
|
||||
```bash
|
||||
cd frontend
|
||||
npm test -- src/api/etmf.test.ts src/views/ia/EtmfPlaceholder.test.ts src/utils/projectRoutePermissions.test.ts
|
||||
npm test -- src/api/etmf.test.ts src/utils/projectRoutePermissions.test.ts
|
||||
```
|
||||
|
||||
Expected: pass.
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
- Modify: `frontend/src/components/QuickActions.vue`
|
||||
- Modify: `frontend/src/views/ia/SubjectManagement.vue`
|
||||
- Modify: `frontend/src/utils/permission.ts`
|
||||
- Test: `frontend/src/components/QuickActions.test.ts`
|
||||
- Test: `frontend/src/views/ia/SubjectManagement.test.ts`
|
||||
- Test: `frontend/src/utils/permission.test.ts`
|
||||
|
||||
|
||||
@@ -13,9 +13,7 @@
|
||||
### Task 1: Route And Navigation Tests
|
||||
|
||||
**Files:**
|
||||
- Modify: `frontend/src/views/detailNavigation.test.ts`
|
||||
- Modify: `frontend/src/views/detailBreadcrumbContext.test.ts`
|
||||
- Modify: `frontend/src/views/ia/MaterialEquipment.test.ts`
|
||||
- Modify: `frontend/src/router.test.ts`
|
||||
|
||||
**Steps:**
|
||||
1. Add the future equipment detail view to detail-navigation expectations.
|
||||
|
||||
Reference in New Issue
Block a user