feat(management): 重构问题编辑界面并增强功能 #159
ci.yml
on: push
Detect Changes
6s
Validate Migrations
1m 50s
Matrix: docker-verify
Matrix: frontend-lint
Matrix: frontend-test
Matrix: frontend-type-check
Backend Test
3m 17s
Annotations
19 errors
|
Lint (management)
Process completed with exit code 1.
|
|
Lint (management):
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L36
'ref' is assigned a value but never used
|
|
Lint (management):
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L36
'computed' is assigned a value but never used
|
|
Lint (management):
management/src/components/ui/sonner/Sonner.vue#L22
'__' is assigned a value but never used
|
|
Lint (management):
management/src/components/ui/sonner/Sonner.vue#L22
'_' is assigned a value but never used
|
|
Lint (console)
Process completed with exit code 1.
|
|
Lint (console):
console/src/components/follow/FollowButton.vue#L14
'fetchStatus' is assigned a value but never used
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > form serialization > handles empty hints array:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L776
TypeError: Cannot read properties of undefined (reading '0')
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:776:48
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > form serialization > handles optional summary as empty string:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L764
TypeError: Cannot read properties of undefined (reading '0')
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:764:48
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > form serialization > emits all form fields in correct shape:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L738
TypeError: Cannot read properties of undefined (reading '0')
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:738:48
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > loading state > shows saving text when loading:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L706
TypeError: formComponent.vm.setLoading is not a function
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:706:24
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > loading state > enables submit button when loading is false:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L691
TypeError: formComponent.vm.setLoading is not a function
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:691:24
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > loading state > disables submit button when loading is true:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L679
TypeError: formComponent.vm.setLoading is not a function
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:679:24
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > submit > emits submit with updated field values:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L637
TypeError: Cannot read properties of undefined (reading '0')
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:637:52
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > submit > emits submit with correct data when form is valid:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L604
AssertionError: expected undefined to be truthy
- Expected:
true
+ Received:
undefined
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:604:41
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > validation > displays slug format validation error:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L581
AssertionError: expected 'problems.descriptionForm.basicInfopro…' to contain 'Slug must contain only lowercase lett…'
Expected: "Slug must contain only lowercase letters, numbers, and hyphens"
Received: "problems.descriptionForm.basicInfoproblems.form.titleproblems.form.slugproblems.form.difficultyproblems.difficulty.EASYproblems.difficulty.MEDIUMproblems.difficulty.HARDproblems.form.statusproblems.status.todoproblems.status.attemptedproblems.status.solvedproblems.descriptionForm.premiumproblems.descriptionForm.premiumDescriptionproblems.descriptionForm.publishedproblems.descriptionForm.publishedDescriptionproblems.descriptionForm.problemDescriptionproblems.form.summaryproblems.form.fullContentproblems.descriptionForm.examplesExamplesEditorproblems.descriptionForm.constraintsConstraintsEditorproblems.descriptionForm.hintsHintsEditorproblems.descriptionForm.tagsAdd Tag problems.descriptionForm.saveDescriptioncommon.cancelLivePreviewPanel"
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:581:30
|
|
views/problems/components/__tests__/DescriptionForm.spec.ts > DescriptionForm > validation > displays validation errors for required fields on submit:
management/src/views/problems/components/__tests__/DescriptionForm.spec.ts#L562
AssertionError: expected 'problems.descriptionForm.basicInfopro…' to contain 'Title is required'
Expected: "Title is required"
Received: "problems.descriptionForm.basicInfoproblems.form.titleproblems.form.slugproblems.form.difficultyproblems.difficulty.EASYproblems.difficulty.MEDIUMproblems.difficulty.HARDproblems.form.statusproblems.status.todoproblems.status.attemptedproblems.status.solvedproblems.descriptionForm.premiumproblems.descriptionForm.premiumDescriptionproblems.descriptionForm.publishedproblems.descriptionForm.publishedDescriptionproblems.descriptionForm.problemDescriptionproblems.form.summaryproblems.form.fullContentproblems.descriptionForm.examplesExamplesEditorproblems.descriptionForm.constraintsConstraintsEditorproblems.descriptionForm.hintsHintsEditorproblems.descriptionForm.tagsAdd Tag problems.descriptionForm.saveDescriptioncommon.cancelLivePreviewPanel"
❯ views/problems/components/__tests__/DescriptionForm.spec.ts:562:21
|
|
Validate Migrations
Process completed with exit code 1.
|
|
Backend Test
Process completed with exit code 1.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
test-results-backend
Expired
|
1.02 MB |
sha256:a3eba81deeff14fc2fe32d63640c252ca3801573d6ddec8e376a0cc488ef5c52
|
|