perf: optimize full interface loading and refresh paths
This commit is contained in:
1 parent
649a0df832
commit
f317314a3c
57 files changed
+791
-136
No files matched your search
@@ -4,9 +4,9 @@ const {orderDrivenUI}=require('../fixtures/order-driven-ui.cjs');
|
||||
test('healthy todo without matched orders shows pending verification without loosening capability gates',{timeout:60000},async t=>{
|
||||
const {page,runtime}=await orderDrivenUI(t,'#notification-settings'),s=runtime.orderRules;
|
||||
s.put('settings',{...s.get('settings','main'),enabled:true,processingEnabled:true});s.capabilities={liveTodo:true,pdfExport:false,automaticArchive:false};
|
||||
await page.getByRole('button',{name:'刷新数据',exact:true}).click();await page.getByRole('link',{name:'自动通知待验证',exact:true}).waitFor();
|
||||
await page.getByRole('button',{name:'刷新数据',exact:true}).click();await page.getByRole('link',{name:'自动通知待核验',exact:true}).waitFor();
|
||||
assert.equal(s.providersReady(),false);assert.equal(s.settings().enabled,true);
|
||||
s.put('execution-scans',{id:'failed-source',status:'failed',error:'fixture failure'});
|
||||
await page.getByRole('button',{name:'刷新数据',exact:true}).click();await page.getByRole('link',{name:'自动通知受阻',exact:true}).waitFor();
|
||||
await page.getByRole('button',{name:'刷新数据',exact:true}).click();await page.getByRole('link',{name:'自动通知待核验',exact:true}).waitFor();
|
||||
assert.equal(s.providersReady(),false);
|
||||
});
|
||||
Reference in new issue
Block a user