console.log('PASS pending image displays before upload; navigation preserves work and fences late view updates; reload retains resource identity');
console.log('PASS pending image displays before upload; navigation preserves work and fences late view updates; reload retains resource identity');
console.log('PASS canvas floating controls remain visible while the sidebar is expanded');
console.log('PASS canvas floating controls remain visible while the sidebar is expanded');
constbeforeImport=documents.get(root).elements.size,importRecord={kind:'element',key:'ui-import',record:{id:'ui-import',incarnation:1,structure:'node',ownerCanvasId:'$target',componentId:'text',dataVersion:1,data:{title:'Imported NDJSON node',text:'Visible before ACK'},geometry:{x:700,y:450,width:240,height:160,rotation:0}}},nativeText=JSON.stringify(importRecord)+'\n{bad}';
awaituntil(`document.querySelectorAll('.react-flow__node').length===6&&document.body.innerText.includes('部分加入')`,'native import did not show its successful prefix and partial report');
for(leti=0;i<100&&!importWriteSeen;i++)awaitpause(20);assert.ok(importWriteSeen);assert.equal(documents.get(root).elements.size,beforeImport,'import waited for its backend before displaying content');
awaitevaluate(`[...document.querySelectorAll('summary')].find(summary=>summary.textContent.includes('条未加入记录')).click()`);awaituntil(`document.body.innerText.includes('记录格式错误')`,'import failure reason was hidden');
for(leti=0;i<200&&documents.get(root).elements.size!==beforeImport+1;i++)awaitpause(20);assert.equal(documents.get(root).elements.size,beforeImport+1);awaitpause(200);awaitcall('Page.reload');awaituntil(`document.querySelectorAll('.react-flow__node').length===6&&document.querySelector('[aria-label="画布导入"]')?.textContent.includes('部分加入')`,'import task and content did not recover after reload');
awaitclick('撤销');awaituntil(`document.querySelectorAll('.react-flow__node').length===5`,'import undo did not remove its successful content');awaitpause(200);awaitcall('Page.reload');awaituntil(`document.querySelectorAll('.react-flow__node').length===5`,'import recovered an undone record');
console.log('PASS actual NDJSON import displays before backend ACK, reports a failed record, restores task/source state and never revives undone content');
awaitclick('账户和工作空间');awaituntil(`!!document.querySelector('#workspace-account:popover-open')`,'account menu did not open');awaitevaluate(`[...document.querySelectorAll('button')].find(button=>button.textContent.trim()==='退出登录').click()`);
awaitclick('账户和工作空间');awaituntil(`!!document.querySelector('#workspace-account:popover-open')`,'account menu did not open');awaitevaluate(`[...document.querySelectorAll('button')].find(button=>button.textContent.trim()==='退出登录').click()`);
awaituntil(`location.pathname==='/login'&&!document.body.innerText.includes('This page couldn’t load')`,'logout did not safely detach the view');
awaituntil(`location.pathname==='/login'&&!document.body.innerText.includes('This page couldn’t load')`,'logout did not safely detach the view');
console.log('PASS logout retires the runtime before dropping its view without a render error');
console.log('PASS logout retires the runtime before dropping its view without a render error');
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.