Website 1.3.0, agent 1.6.0, contracts 1.19.0: demo data for the Church Website
Eight demo churches, two per template (the second on the template's other recommended variants and header), loaded from the Hub on demo sites with `crosscode demo <church> website --profile <p>`. A profile replaces the content only: the church's profile from Accounts, the site settings, the site icon and the admins stay, and the copy names the church. - contracts: WEBSITE_DEMO_PROFILES, DEMO_PRODUCTS, SEED_WEBSITE_DEMO_MIN_AGENT; seed-demo takes an optional product (events by default) - agent: a Website seed-demo job runs `crosscode demo <church> website` - crosscode script: backup, demo as the site's user, reload, health check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -165,6 +165,15 @@ describe("seed-demo jobs", () => {
|
||||
expect(agent.JOB_TYPES).toContain("seed-demo");
|
||||
expect(agent.CENTRAL_JOB_TYPES).not.toContain("seed-demo");
|
||||
});
|
||||
it("1.19.0: a Website demo names the product and takes only a Website profile", () => {
|
||||
expect(args({ church: "hope", product: "website", profile: "bold-plant" })).toBe(true);
|
||||
expect(args({ church: "hope", product: "events", profile: "small" })).toBe(true);
|
||||
expect(args({ church: "hope", product: "website", profile: "small" })).toBe(false);
|
||||
expect(args({ church: "hope", profile: "bold-plant" })).toBe(false);
|
||||
expect(args({ church: "hope", product: "website", profile: "clean-campus", adminEmail: "jane@hope.test" })).toBe(false);
|
||||
expect(args({ church: "hope", product: "accounts", profile: "small" })).toBe(false);
|
||||
expect(agent.WEBSITE_DEMO_PROFILES).toHaveLength(8);
|
||||
});
|
||||
});
|
||||
|
||||
describe("env-read and env-set jobs (1.12.0)", () => {
|
||||
|
||||
Reference in New Issue
Block a user