Verify Intent palette reads against fresh authorised source forms

This commit is contained in:
Atlas Development Worker 2026-12-02 21:19:11 +00:00
parent 0ac19f5215
commit ae7dc97f87

View File

@ -67,12 +67,13 @@ let session, stage = 'login';
stage='fresh login persistence and read-only source';
await session.close(); session=await open();
scoped=await read({sceneID:first});
assert.equal(scoped.entries[0].key,'location:'+place);
await session.goto('/Scenes/Edit/'+first);
await session.page.getByRole('button',{name:'Edit scene details',exact:true}).click();
assert.equal(scoped.entries[0].key,'location:'+place,'Fresh palette identity');
// Independently reload the normal authorised source form from the server. This
// endpoint is the same partial loaded by the existing scene-details editor.
assert.equal((await session.goto('/Scenes/SceneDetailsEditor?sceneId='+first)).status(),200);
const editor=session.page.locator('form[data-scene-editor-form]');
assert.equal(await editor.locator('[name=PrimaryLocationID]').inputValue(),String(place));
assert.equal(await editor.locator('[name=SceneTitle]').inputValue(),'Palette first scene');
assert.equal(await editor.locator('[name=PrimaryLocationID]').inputValue(),String(place),'Source location');
assert.equal(await editor.locator('[name=SceneTitle]').inputValue(),'Palette first scene','Source title');
console.log(JSON.stringify({passed:true,milestone:'palette read path only',checks:[
'chapter without prose or scenes','canonical identity separation and hidden-label ambiguity',
'case-insensitive wider search and literal percent','chapter and optional scene associations/provenance',
@ -81,6 +82,7 @@ let session, stage = 'login';
limitations:['interactive checklist/palette component and candidate fixture acceptance remain outstanding']}));
} catch(error) {
console.error('Intent palette acceptance failed at '+stage+' ('+error.name+'). No credentials logged.');
if(error.name==='AssertionError') console.error(error.message);
process.exitCode=1;
} finally {
if(session) {