diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs b/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs index cd2c489..bdbf800 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs @@ -14,7 +14,8 @@ const waitFor = async (expr, ms = 15000) => { const t0 = Date.now(); while (Date const fail = (m) => { console.log('FAIL@' + m); process.exit(1); }; const goto = async (hash) => { await ev(`location.hash = ${JSON.stringify(hash)}`); await sleep(800); }; -await send('Page.navigate', { url: 'http://localhost:8900/#/' }); +await send('Page.navigate', { url: 'http://localhost:8900/?v=' + Date.now() }); +await new Promise((r) => setTimeout(r, 2000)); // 等所有资源加载(含带版本号的 style.css/data.js) if (!(await waitFor(`!!document.querySelector('#view')`))) fail('app boot'); await ev(`document.querySelectorAll('.modal-mask').forEach((m) => m.remove())`); // 清 root 设置弹窗 @@ -46,11 +47,11 @@ const out = await ev(`(() => { console.log(JSON.stringify(out, null, 1)); const ok = out && !out.__err && out.ths.length === 9 && out.thTagIdx === 2 && out.likeIdx === 3 && out.durIdx === 7 && out.tagBeforeLike === true - && out.thTagW === 40 + && out.thTagW === 60 && out.rowCells.length === 9 && out.rowCells[2].cls.includes('td-tag') && !!out.tagTdText && out.tagTdText.length > 0 && !!out.tagTdTitle && out.tagTdTitle.includes('#') && out.tagTdTitle.length >= out.tagTdText.length - && out.tagTdClips === true && out.tagTdW === 40 && out.hasNumClass === false; + && out.tagTdClips === true && out.tagTdW === 60 && out.hasNumClass === false; console.log(ok ? '\n=== PASS ===' : '\n=== CHECK ==='); ws.close(); process.exit(ok ? 0 : 1); diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html b/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html index 21c4607..9a78983 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html @@ -4,7 +4,7 @@