From d7b35709a769a2b46338614281b2c5cb4ff4a905 Mon Sep 17 00:00:00 2001 From: linshen <32978552+linshenkx@users.noreply.github.com> Date: Sun, 26 Apr 2026 23:24:38 +0800 Subject: [PATCH] test(ui): update favorite editor guard targets --- packages/ui/tests/unit/i18n/runtime-english-guards.spec.ts | 6 +++--- .../ui/tests/unit/image/app-preview-image-adoption.spec.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ui/tests/unit/i18n/runtime-english-guards.spec.ts b/packages/ui/tests/unit/i18n/runtime-english-guards.spec.ts index ccea192f..95c9232c 100644 --- a/packages/ui/tests/unit/i18n/runtime-english-guards.spec.ts +++ b/packages/ui/tests/unit/i18n/runtime-english-guards.spec.ts @@ -115,7 +115,7 @@ describe('ui runtime english guards', () => { it('keeps favorites management fallbacks locale-backed', () => { const categorySource = readUiSource('src/components/CategoryManager.vue') const tagSource = readUiSource('src/components/TagManager.vue') - const saveDialogSource = readUiSource('src/components/SaveFavoriteDialog.vue') + const favoriteEditorSource = readUiSource('src/components/FavoriteEditorForm.vue') const previewSource = readUiSource('src/components/PromptGardenFavoritePreviewPanel.vue') expect(categorySource).toMatch(/message\.warning\(t\('favorites\.manager\.messages\.unavailable'\)\)/) @@ -124,8 +124,8 @@ describe('ui runtime english guards', () => { expect(tagSource).toMatch(/getI18nErrorMessage/) expect(tagSource).not.toMatch(/'Unknown error'/) - expect(saveDialogSource).toMatch(/getI18nErrorMessage/) - expect(saveDialogSource).not.toMatch(/'Unknown error'/) + expect(favoriteEditorSource).toMatch(/getI18nErrorMessage/) + expect(favoriteEditorSource).not.toMatch(/'Unknown error'/) expect(previewSource).toMatch(/getI18nErrorMessage/) expect(previewSource).not.toMatch(/'Unknown error'/) diff --git a/packages/ui/tests/unit/image/app-preview-image-adoption.spec.ts b/packages/ui/tests/unit/image/app-preview-image-adoption.spec.ts index 301841bb..14121f69 100644 --- a/packages/ui/tests/unit/image/app-preview-image-adoption.spec.ts +++ b/packages/ui/tests/unit/image/app-preview-image-adoption.spec.ts @@ -14,7 +14,7 @@ describe('app preview image adoption guards', () => { 'src/components/ImageModelEditModal.vue', 'src/components/ImageModelManager.vue', 'src/components/MainLayout.vue', - 'src/components/SaveFavoriteDialog.vue', + 'src/components/FavoriteEditorForm.vue', 'src/components/image-mode/ImageImage2ImageWorkspace.vue', 'src/components/image-mode/ImageText2ImageWorkspace.vue', ] @@ -30,7 +30,7 @@ describe('app preview image adoption guards', () => { const files = [ 'src/components/FavoriteMediaPreviewPanel.vue', 'src/components/GardenSnapshotPreview.vue', - 'src/components/SaveFavoriteDialog.vue', + 'src/components/FavoriteEditorForm.vue', ] for (const file of files) {