fix(deploy): remove orphaned proxy directives from template cleanup

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-23 18:41:31 +08:00
parent 57394387cc
commit 5efb89a252
3 changed files with 16 additions and 19 deletions
+9
View File
@@ -91,6 +91,15 @@ test('outside release debug', async ({ page }: { page: Page }) => {
return `reasons=[${d ? [...d.reasons].join(',') : '?'}] userPaused=${d?.userPaused.value}`;
}));
// 手动在 iframe window 派发 pointerup——验证组件监听是否注册生效
await f!.evaluate(() => {
window.dispatchEvent(new PointerEvent('pointerup', { bubbles: true, clientX: 0, clientY: 0, pointerId: 1 }));
});
await page.waitForTimeout(1500);
console.log('[2b after manual pointerup]', await f!.evaluate(() => {
const d = (window as unknown as { __embedDebug?: { reasons: Set<string> } }).__embedDebug;
return `reasons=[${d ? [...d.reasons].join(',') : '?'}]`;
}));
const s1 = await offset();
await page.waitForTimeout(15000);
console.log('[3 15s moved]', Math.abs((await offset()) - s1).toFixed(0), 'px');