You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set default target source and reposition capture mode and asset folder controls in Preview Generator V2 - PR_26126_020-preview-generator-v2-target-source-and-control-placement
codex run "Create PR_26126_019-preview-generator-v2-accordion-status-and-generate-gate. Fix Preview Generator V2 UI only. Preserve existing generation behavior. New rule: left and right columns must always use working accordion sections. Restore working accordion behavior on the left column and keep working accordion behavior on the right column. Add a Clear button on the same line as Status to empty the logging/status textarea. Hide Generate Preview until all required fields are provided; do not merely disable it. Add the missing \"Paths or IDs\" header above the input information in the left panel aside. Do not modify samples. Do not add schema. Produce review artifacts."
4
+
codex run "Create PR_26126_020-preview-generator-v2-target-source-and-control-placement. Fix Preview Generator V2 UI only. Preserve existing generation behavior. Default Target Source to Games. Generate Preview must be visible but disabled/greyed out until required fields are provided; do not hide it. Move Capture mode into its own accordion/control section above Render Controls with options \"Full Screen (1600x900 HTML Page)\" and \"Canvas Only\". Move Asset folder into its own accordion/control section below Target Source with value \"assets/images\". Left and right columns must continue to use working accordion sections. Do not modify samples. Do not add schema. Produce review artifacts."
5
5
```
6
6
7
7
## Validation Commands
@@ -56,38 +56,43 @@ async function assertAccordion(selector) {
if (JSON.stringify(leftHeaders) !== JSON.stringify(expectedLeftHeaders)) throw new Error(`Unexpected left accordion order: ${JSON.stringify(leftHeaders)}`);
if ((await page.locator('#pathsOrIdsTitle').innerText()) !== 'Paths or IDs') throw new Error('Missing Paths or IDs heading.');
81
-
if (await page.locator('#executeBtn').isVisible()) throw new Error('Generate Preview should be hidden before required fields are provided.');
83
+
if (!(await page.locator('#targetTypeGames').isChecked())) throw new Error('Games should be the default Target Source.');
84
+
if (await page.locator('#targetTypeSamples').isChecked()) throw new Error('Samples should not be default Target Source.');
85
+
if ((await page.locator('#assetFolder').inputValue()) !== 'assets/images') throw new Error('Asset folder should remain assets/images.');
86
+
if (!(await page.locator('#executeBtn').isVisible())) throw new Error('Generate Preview should be visible before required fields are provided.');
87
+
if (!(await page.locator('#executeBtn').isDisabled())) throw new Error('Generate Preview should be disabled before required fields are provided.');
82
88
await page.fill('#baseUrl', server.baseUrl);
83
89
await page.fill('#waitMs', '3000');
84
90
await page.fill('#sampleList', '0107');
85
91
await page.check('#forceRewrite');
86
-
if (await page.locator('#executeBtn').isVisible()) throw new Error('Generate Preview should remain hidden until repo folder is selected.');
87
-
await page.click('#clearLogBtn');
88
-
if ((await page.locator('#log').innerText()).trim() !== '') throw new Error('Clear should empty the status log output.');
92
+
if (!(await page.locator('#executeBtn').isVisible()) || !(await page.locator('#executeBtn').isDisabled())) throw new Error('Generate Preview should remain visible and disabled until repo folder is selected.');
@@ -98,13 +103,13 @@ if (!writes[0].content.includes('<svg')) throw new Error('Generated content is n
98
103
if (errors.length || consoleErrors.length) throw new Error([...errors, ...consoleErrors].join(' | '));
99
104
await browser.close();
100
105
await server.close();
101
-
console.log('preview-generator-v2 accordion status generate gate smoke valid');
106
+
console.log('preview-generator-v2 target source and control placement smoke valid');
102
107
'@ | node --input-type=module -
103
108
```
104
109
105
110
## Notes
106
111
107
-
The targeted Playwright smoke validates left and right accordion collapse/expand behavior, hidden Generate Preview gating, Status Clear log clearing, the Paths or IDs heading, repo destination display, and preserved preview generation output.
112
+
The targeted Playwright smoke validates default Games target, visible disabled Generate Preview gating, Asset folder and Capture mode section placement, working left/right accordions, and preserved preview generation after switching to Samples.
108
113
109
114
`npm run test:workspace-v2` was attempted, but the script is not defined in this checkout.
0 commit comments