mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 02:29:33 +01:00
fix(story-mode): the browser test's caption fit reads the Advanced level
With the Director's cut as the default reading level, the story line the test lengthens is not shown, so its panel never grew and the check failed. The test now picks the Advanced level first, where that line is the caption. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b06f8bee59
commit
49c443a1b4
1 file changed
+2
@@ -169,6 +169,8 @@ describe('Story Mode in a real browser', () => {
|
||||
// A caption longer than the band above the art makes its panel taller, so it covers no art.
|
||||
const fit = await page.evaluate(async () => {
|
||||
const st = (window as any).app._story;
|
||||
// The story line shows at the Advanced level (the Director's cut, the default, shows the tools).
|
||||
(window as any).app._storySetLevel('advanced');
|
||||
const rt = st.panels.find((p: { kind: string; splash: unknown }) => !p.splash && p.kind !== 'mission');
|
||||
rt.capStory.textContent = 'Claude writes three files, runs the tests twice and saves the work. '.repeat(4);
|
||||
(window as any).app._storyFitCaption(rt);
|
||||
|
||||
Reference in new issue
Block a user