docs: standardize AgendaMax demo access
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ function check(name, cond, extra = "") {
|
||||
}
|
||||
|
||||
// Admin login
|
||||
const { json: aLogin } = await req("POST", "/auth/login", { email: "admin@agendapro.demo", password: "demo1234" });
|
||||
const { json: aLogin } = await req("POST", "/auth/login", { email: "admin@agendamax.demo", password: "demo1234" });
|
||||
check("admin login", aLogin.user?.role === "admin" && aLogin.token, JSON.stringify(aLogin).slice(0, 100));
|
||||
const A = aLogin.token;
|
||||
|
||||
@@ -54,7 +54,7 @@ const { json: oBiz } = await req("GET", "/business", null, OT);
|
||||
check("new owner business name", oBiz.business?.name === "Barbería Test");
|
||||
|
||||
// Owner1 still sees only Lumière (isolation the other way)
|
||||
const { json: owner1 } = await req("POST", "/auth/login", { email: "owner@agendapro.demo", password: "demo1234" });
|
||||
const { json: owner1 } = await req("POST", "/auth/login", { email: "owner@agendamax.demo", password: "demo1234" });
|
||||
const { json: o1Emps } = await req("GET", "/employees", null, owner1.token);
|
||||
check("owner1 isolation: still 6 employees", o1Emps.employees?.length === 6, `got ${o1Emps.employees?.length}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user