diff --git a/src/features/subject-identity/components/IdentityGallery.vue b/src/features/subject-identity/components/IdentityGallery.vue
index 10482b3..5199644 100644
--- a/src/features/subject-identity/components/IdentityGallery.vue
+++ b/src/features/subject-identity/components/IdentityGallery.vue
@@ -161,7 +161,8 @@ function chooseAnchor() {
>取消
-
+ 本次实际提示词
{{ selected.prompt }}
{
+ it('实际提示词默认展开,可手动收起,轮询更新不强行重新展开', async () => {
+ const image = identityImageFixture({ prompt: '本次实际生成提示词' })
+ wrapper = mount(IdentityGallery, {
+ props: { subjectName: '林夏', module: 'character', identityLocked: true, disabled: false, images: [image] }
+ })
+ const panel = wrapper.get('.n-collapse-item')
+ expect(panel.classes()).toContain('n-collapse-item--active')
+ expect(panel.text()).toContain('本次实际生成提示词')
+ await panel.get('.n-collapse-item__header-main').trigger('click')
+ expect(panel.classes()).not.toContain('n-collapse-item--active')
+ await wrapper.setProps({ images: [{ ...image, prompt: '更新后的实际提示词' }] })
+ expect(panel.classes()).not.toContain('n-collapse-item--active')
+ await panel.get('.n-collapse-item__header-main').trigger('click')
+ expect(panel.classes()).toContain('n-collapse-item--active')
+ expect(panel.text()).toContain('更新后的实际提示词')
+ })
+
it('全部历史记录显示在预览下方,候选、辅助、失败和进行中图片均可切换查看', async () => {
const images = [
identityImageFixture({