Refactor pipeline task handling and UI flows
This commit is contained in:
@@ -140,7 +140,7 @@ test("getLeadAuditStartStates exposes active audit run status for lead review bu
|
||||
assert.match(source, /canStart/);
|
||||
});
|
||||
|
||||
test("queueLeadPageSpeedAudit dedupes per lead and schedules pagespeed action", () => {
|
||||
test("queueLeadPageSpeedAudit dedupes per lead and schedules audit workflow", () => {
|
||||
const queueSource = pageSpeedSource;
|
||||
assert.equal(
|
||||
hasPattern(
|
||||
@@ -169,10 +169,10 @@ test("queueLeadPageSpeedAudit dedupes per lead and schedules pagespeed action",
|
||||
assert.equal(
|
||||
hasPattern(
|
||||
queueSource,
|
||||
/ctx\.scheduler\.runAfter\(\s*0,\s*internal\.pageSpeedAction\.processPageSpeedAudit,\s*\{[\s\S]*?runId/,
|
||||
/ctx\.scheduler\.runAfter\(\s*0,\s*internal\.auditWorkflow\.startLeadAuditWorkflow,\s*\{[\s\S]*?runId/,
|
||||
),
|
||||
true,
|
||||
"queueLeadPageSpeedAudit must schedule internal.pageSpeedAction.processPageSpeedAudit with runAfter(0, ...).",
|
||||
"queueLeadPageSpeedAudit must schedule internal.auditWorkflow.startLeadAuditWorkflow with runAfter(0, ...).",
|
||||
);
|
||||
assert.equal(
|
||||
hasPattern(
|
||||
|
||||
Reference in New Issue
Block a user