feat: add canonical identity administration
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
const moduleSource = readFileSync("src/module.ts", "utf8");
|
||||
const page = readFileSync("src/features/IdentityAdminPage.tsx", "utf8");
|
||||
const api = readFileSync("src/api/identities.ts", "utf8");
|
||||
|
||||
assert.match(moduleSource, /"admin.sections": adminSections/);
|
||||
assert.match(moduleSource, /identity\.admin\.directory/);
|
||||
assert.match(page, /<AdminPageLayout/);
|
||||
assert.match(page, /<PageActionBar/);
|
||||
assert.match(page, /refreshable/);
|
||||
assert.match(page, /saveAction=/);
|
||||
assert.match(page, /useUnsavedDraftGuard/);
|
||||
assert.match(page, /management_scope/);
|
||||
assert.match(page, /Promote/);
|
||||
assert.match(api, /account-links/);
|
||||
assert.match(api, /include_inactive/);
|
||||
|
||||
console.log("Identity administration UI structural contract passed.");
|
||||
Reference in New Issue
Block a user