修复新闻工作台换号联动流程
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
15 files changed
+203
-34
No files matched your search
@@ -182,6 +182,11 @@ test('真实站点 aid 属性:上传成功但图片响应失败不得报告完
|
||||
await assert.rejects(h.api.importPrepared({automatic:true}),/网站附件图片无法显示/);
|
||||
assert.equal(h.ids.get('subject').value,'');assert.equal(h.api.getState().result,null);
|
||||
});
|
||||
test('自动流程关闭图片检查后,不等待或拒绝无法显示的图片', async () => {
|
||||
const h=harness({brokenImages:true});await h.api.stageFiles(articleFiles());
|
||||
const result=await h.api.importPrepared({automatic:true,verifyImages:false});
|
||||
assert.ok(result.attachmentOrder.length);assert.ok(h.ids.get('subject').value);
|
||||
});
|
||||
test('链接内图片、多行图文链接均参与上传并按原位置渲染', () => {
|
||||
const md='# 标题\n\n[\n\n### 宣传标题\n\n说明](https://example.com/promo)\n\n';
|
||||
const article=core.compile(md,'a.md',new Map([['image004.jpg',new Blob(['x'])],['image001.jpg',new Blob(['y'])]]));
|
||||
|
||||
Reference in new issue
Block a user