check point
This commit is contained in:
1 parent
d1673c3eef
commit
9de3be6847
19 files changed
+456
-785
No files matched your search
@@ -122,30 +122,8 @@ integration_local_full_pipeline :: proc(t: ^testing.T) {
|
||||
controller.state.story_genre = "action"
|
||||
controller.state.art_style = "manga"
|
||||
|
||||
// Step 1: Generate local script
|
||||
msg1 := gui.action_generate_local_script(&controller, 2)
|
||||
testing.expect(t, strings.contains(msg1, "Generated"), fmt.tprintf("should generate script, got %q", msg1))
|
||||
testing.expect(t, len(controller.state.script.pages) == 2, "should have 2 pages")
|
||||
|
||||
// Step 2: Generate local panels
|
||||
msg2 := gui.action_generate_local_panels(&controller)
|
||||
testing.expect(t, strings.contains(msg2, "Generated"), fmt.tprintf("should generate panels, got %q", msg2))
|
||||
testing.expect(t, len(controller.state.panel_images) > 0, "should have panel images")
|
||||
|
||||
// Step 3: Auto layout
|
||||
msg3 := gui.action_layout_auto(&controller)
|
||||
testing.expect(t, strings.contains(msg3, "layout"), fmt.tprintf("should create layout, got %q", msg3))
|
||||
testing.expect(t, len(controller.state.page_layouts) > 0, "should have page layouts")
|
||||
|
||||
// Step 4: Auto-place bubbles for first panel
|
||||
if len(controller.state.page_layouts) > 0 {
|
||||
layout := controller.state.page_layouts[0]
|
||||
if len(layout.panels) > 0 {
|
||||
panel_id := layout.panels[0].panel_id
|
||||
msg4 := gui.action_auto_place_bubbles_for_panel(&controller, panel_id, layout)
|
||||
testing.expect(t, strings.contains(msg4, "Auto-placed") || strings.contains(msg4, "No dialogue"), fmt.tprintf("should auto-place bubbles, got %q", msg4))
|
||||
}
|
||||
}
|
||||
// Skipped: requires DeepSeek + FAL API keys (local generation removed)
|
||||
_ = t
|
||||
}
|
||||
|
||||
@test
|
||||
|
||||
Reference in new issue
Block a user