feat(hk): explain background updates with protected content links and retry details
CI / check (push) Failing after 1m34s
CI / deploy (push) Skipped
CI / publish-container (push) Skipped

This commit is contained in:
Simo committed 2026-09-13 19:41:25 +02:00
1 parent dd7613850e
commit c5c9941768
42 files changed
+1542 -145

No files matched your search

+17 -2
View File
@@ -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([