Fix prop confirmation bug, add Wan 2.7 model, refine multiple UI details, improve prop generation quality and aspect ratio, remove text overlays from Asset Center created images, and optimize prop filtering logic
This commit is contained in:
@@ -177,6 +177,8 @@ describe('worker reference-to-character', () => {
|
||||
|
||||
expect(result).toEqual(expect.objectContaining({ success: true }))
|
||||
expect(generatorApiMock.generateImage).toHaveBeenCalledTimes(3)
|
||||
expect(fontsMock.initializeFonts).not.toHaveBeenCalled()
|
||||
expect(fontsMock.createLabelSVG).not.toHaveBeenCalled()
|
||||
|
||||
const { prompt, options } = readGenerateCall(0)
|
||||
expect(prompt).toContain('冷静黑发角色')
|
||||
@@ -201,6 +203,8 @@ describe('worker reference-to-character', () => {
|
||||
|
||||
expect(result).toEqual(expect.objectContaining({ success: true }))
|
||||
expect(generatorApiMock.generateImage).toHaveBeenCalledTimes(3)
|
||||
expect(fontsMock.initializeFonts).not.toHaveBeenCalled()
|
||||
expect(fontsMock.createLabelSVG).not.toHaveBeenCalled()
|
||||
|
||||
const { prompt, options } = readGenerateCall(0)
|
||||
expect(prompt).toContain('BASE_REFERENCE_PROMPT')
|
||||
@@ -237,4 +241,20 @@ describe('worker reference-to-character', () => {
|
||||
expect(cosKeys).toHaveLength(5)
|
||||
expect(cosKeys?.every((item) => item.startsWith('cos/reference-key-'))).toBe(true)
|
||||
})
|
||||
|
||||
it('adds project label bars only for project reference generation', async () => {
|
||||
const job = buildJob(
|
||||
{
|
||||
referenceImageUrls: ['https://example.com/ref-a.png'],
|
||||
characterName: 'Hero',
|
||||
count: 1,
|
||||
},
|
||||
TASK_TYPE.REFERENCE_TO_CHARACTER,
|
||||
)
|
||||
|
||||
await handleReferenceToCharacterTask(job)
|
||||
|
||||
expect(fontsMock.initializeFonts).toHaveBeenCalledTimes(1)
|
||||
expect(fontsMock.createLabelSVG).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user