22 lines
4.3 KiB
Plaintext
22 lines
4.3 KiB
Plaintext
1:// Local GET-only:339 entries/6 Notes/53 exact/10 bounded gaps/71 unknown/1 boundary.
|
|
18: const page=await browser.newPage({viewport:{width:1440,height:1000}});
|
|
34: check(details.length===141&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===9161,'141图9161保存条目');
|
|
35: check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===268,'141图268源注释');
|
|
41: for(const width of [1440,390]){
|
|
55: check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`);
|
|
56: await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0);
|
|
65: check(b.counts.saved_fields===339&&b.comments.length===6&&b.boundaries.length===1&&b.zero_saved_nodes.length===15,`${width}339原条目/六注释/一子图/15空或缺保存`);
|
|
67: check(b.node_bindings.length===135&&b.node_bindings.filter(x=>x.implementation_verified).length===53&&b.node_bindings.filter(x=>x.source_id.startsWith('unresolved-')).map(x=>x.node_id).sort().join(',')==='37,597,607,614,615,62,66,67,69,71'&&b.node_bindings.filter(x=>x.source_id==='unknown-no-version').length===71,`${width}53准确/十具体缺口/71未知/一宿主`);
|
|
77: assert.deepEqual(node('546').widgets_values,{});assert.deepEqual(node('629').widgets_values,[{},{}]);
|
|
78: check(b.zero_saved_nodes.some(n=>n.node_id==='546'&&n.state==='empty_dict')&&b.fields.filter(f=>f.json_type==='dict').length===7&&b.fields.filter(f=>f.json_type==='NoneType').length===2,`${width}546空dict/629两个完整dict/五历史/两null分列`);
|
|
80: check(!('frontendVersion'in rawExtra)&&b.boundaries[0].proxy_state==='missing'&&node('663').mode===4&&!('proxyWidgets'in node('663').properties),`${width}前端未知/无proxy/宿主mode4`);
|
|
82: check(field('614','seed').value===246593650829984&&field('613','seed').value===325005255519842&&node('614').inputs.find(x=>x.name==='seed').link===937,`${width}两个独立seed缓存和937外线`);
|
|
83: check(field('619','single_frame_prefix_encoding').value==='disabled'&&field('619','loop_colormatch_reference').value==='previous_matched_frame'&&field('436','cleanup_mode').value===true,`${width}原类型/schema与清理口冲突不归一`);
|
|
84: check(field('667','phase1_mask').value===0.5&&field('667','phase2_mask').value===1&&field('667','phase2_start_step').value===1,`${width}TwoPhase三原值与准确默认分列`);
|
|
91: await nd.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-note-${n.node_id}.png`});await nd.locator('summary').click();
|
|
94: for(const [phrase,label]of [['重要准确注册缺口','source-gap'],['615身份冲突','commit-gap'],['真正采样消费','samples'],['619准确8868','embeds'],['667准确1607','two-phase'],['629准确af6','bypass'],['清理436身份冲突','cleanup'],['播放693准确','sound']]){
|
|
95: const line=b.flow.filter(x=>x.includes(phrase)).sort((a,b)=>a.length-b.length)[0];assert.ok(line,phrase);await fixedCard.getByText(line,{exact:true}).first().evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${label}.png`});
|
|
111: check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`);
|
|
119: if(['614.seed','613.seed','619.single_frame_prefix_encoding','619.loop_colormatch_reference','667.phase2_start_step','436.cleanup_mode','629.position_0','589.position_1','663.width','663:661.width','119.videopreview','567.videopreview','621.videopreview','550.videopreview','573.videopreview','615.positive_prompt','615.negative_prompt','694.value','693.audio_path','693.duration'].includes(f.node_id+'.'+f.field)){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`});}
|
|
156: fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'固定请求逐路径核账;events零差额,只允许已证末次jobs至多1差额;禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,text_renderings:textRenderings,interceptions,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
|