From eac2dd4cde1153e071ce38cfe96ec1dc7669e094 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Wed, 28 Oct 2026 21:07:53 +0800 Subject: [PATCH] Expect ID-only result links for both layout families --- apps/studio/tests/native-layout.test.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/studio/tests/native-layout.test.mjs b/apps/studio/tests/native-layout.test.mjs index 924cb84..b4e3f29 100644 --- a/apps/studio/tests/native-layout.test.mjs +++ b/apps/studio/tests/native-layout.test.mjs @@ -12,7 +12,8 @@ test('geometric templates retain their distinct silhouettes without bitmap masks assert.equal(imageShape(layouts[4],layouts[4].elements.find(s=>s.id==='I03')).borderRadius,'50%'); assert.ok(imageShape(layouts[21],layouts[21].elements.find(s=>s.id==='I02')).clipPath.startsWith('polygon(')); assert.notEqual(imageShape(layouts[21],layouts[21].elements.find(s=>s.id==='I02')).clipPath,imageShape(layouts[26],layouts[26].elements.find(s=>s.id==='I02')).clipPath); - assert.equal(designUrl('ref-01','abc'),'/studio/layouts/ref-01?id=abc'); + assert.equal(designUrl('ref-01','abc'),'/studio/template-layout?id=abc'); + assert.equal(designUrl('standard-01','abc'),'/studio/template-layout?id=abc'); }); test('element IDs work on HTTP origins without secure-context randomUUID',()=>{const saved=Object.getOwnPropertyDescriptor(globalThis,'crypto');let calls=0;Object.defineProperty(globalThis,'crypto',{configurable:true,value:{getRandomValues(array){for(let i=0;i