test(ui): update favorite editor guard targets
This commit is contained in:
1 parent
51df8086bf
commit
d7b35709a7
2 files changed
+5
-5
No files matched your search
@@ -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'/)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user