Skip to content

Commit 0616c04

Browse files
authored
hotfix: quick test updates for sora2 pricing badge. (#5966)
## Summary Update expectations post-merge. See #5958
1 parent 34d5a45 commit 0616c04

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests-ui/tests/composables/node/useNodePricing.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ describe('useNodePricing', () => {
316316
{ name: 'duration', value: 'oops' },
317317
{ name: 'size', value: '720x1280' }
318318
])
319-
expect(getNodeDisplayPrice(nodeNaN)).toBe('Set duration (4/8/12)')
319+
expect(getNodeDisplayPrice(nodeNaN)).toBe('Set model, duration & size')
320320

321321
const nodeZero = createMockNode('OpenAIVideoSora2', [
322322
{ name: 'model', value: 'sora-2-pro' },
323323
{ name: 'duration', value: 0 },
324324
{ name: 'size', value: '720x1280' }
325325
])
326-
expect(getNodeDisplayPrice(nodeZero)).toBe('Set duration (4/8/12)')
326+
expect(getNodeDisplayPrice(nodeZero)).toBe('Set model, duration & size')
327327
})
328328

329329
it('should require size when size is missing', () => {
@@ -332,9 +332,7 @@ describe('useNodePricing', () => {
332332
{ name: 'model', value: 'sora-2-pro' },
333333
{ name: 'duration', value: 8 }
334334
])
335-
expect(getNodeDisplayPrice(node)).toBe(
336-
'Set size (720x1280, 1280x720, 1024x1792, 1792x1024)'
337-
)
335+
expect(getNodeDisplayPrice(node)).toBe('Set model, duration & size')
338336
})
339337

340338
it('should compute pricing for sora-2-pro with 1024x1792', () => {
@@ -365,7 +363,7 @@ describe('useNodePricing', () => {
365363
{ name: 'size', value: '640x640' }
366364
])
367365
expect(getNodeDisplayPrice(node)).toBe(
368-
'Size must be 720x1280, 1280x720, 1024x1792, or 1792x1024'
366+
'Invalid size. Must be 720x1280, 1280x720, 1024x1792, or 1792x1024.'
369367
)
370368
})
371369

0 commit comments

Comments
 (0)