feat(hk): explain background updates with protected content links and retry details
This commit is contained in:
1 parent
dd7613850e
commit
c5c9941768
42 files changed
+1542
-145
No files matched your search
@@ -575,6 +575,13 @@ describe("real news publication, scheduling and cache delivery", () => {
|
||||
);
|
||||
expect(boundaries.notify).not.toHaveBeenCalled();
|
||||
const existing = await savedArticle();
|
||||
const [creation] = await rows(
|
||||
"SELECT result_json FROM cms_operations WHERE kind='news.create'",
|
||||
);
|
||||
expect(JSON.parse(creation.result_json)).toMatchObject({
|
||||
articleId: String(existing.id),
|
||||
articleTitle: existing.title,
|
||||
});
|
||||
expect(existing.status).toBe("draft");
|
||||
expect(existing.publishedAt).toBeNull();
|
||||
expect(await publicNews.getPublishedArticle(existing.slug)).toBeNull();
|
||||
@@ -755,12 +762,20 @@ describe("real news publication, scheduling and cache delivery", () => {
|
||||
{
|
||||
actor: 0,
|
||||
kind: "news.schedule.publish",
|
||||
result: { articleId: "9007199254740993", published: true },
|
||||
result: {
|
||||
articleId: "9007199254740993",
|
||||
articleTitle: "due-now",
|
||||
published: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
actor: 7,
|
||||
kind: "news.schedule.publish",
|
||||
result: { articleId: "1", published: true },
|
||||
result: {
|
||||
articleId: "1",
|
||||
articleTitle: "due-earlier",
|
||||
published: true,
|
||||
},
|
||||
},
|
||||
]);
|
||||
expect(await rows("SELECT topic,status FROM cms_outbox")).toEqual([
|
||||
|
||||
Reference in new issue
Block a user