Link contextual guidance to Docs
This commit is contained in:
@@ -28,6 +28,7 @@ const localizedMarkup = renderToStaticMarkup(
|
||||
target: "i18n:target",
|
||||
technicalDetails: "i18n:technical-details"
|
||||
}}
|
||||
documentation={{ topicId: "docs.pattern.blocked-action" }}
|
||||
reason={{
|
||||
summary: "i18n:summary",
|
||||
requiredAction: "i18n:action-copy",
|
||||
@@ -47,3 +48,7 @@ for (const token of [
|
||||
assert(localizedMarkup.includes(token), `${token} is rendered through the shared blocker contract`);
|
||||
}
|
||||
assert(localizedMarkup.includes("tone-danger"), "the consequence tone remains explicit");
|
||||
assert(
|
||||
localizedMarkup.includes("topic=docs.pattern.blocked-action"),
|
||||
"a blocker can link to a stable configured-system documentation topic"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user