1
0
forked from baron/baron-sso

fix(ci): update Node 24 and playwright workers, fix user detail queries on create

This commit is contained in:
2026-04-03 09:46:26 +09:00
parent 462ae91a9e
commit f0bf58d336
5 changed files with 572 additions and 6 deletions

View File

@@ -90,10 +90,29 @@ test.describe("User Management", () => {
tenantSlug: "test-tenant",
role: "user",
status: "active",
metadata: {},
},
});
}
if (url.includes("/password/policy")) {
return route.fulfill({
json: {
minLength: 12,
lowercase: true,
uppercase: true,
number: true,
nonAlphanumeric: true,
},
});
}
if (url.includes("/rp-history")) {
return route.fulfill({
json: [],
});
}
if (url.includes("/admin/users") && method === "POST") {
// Parse request payload to simulate validation checks
const postData = route.request().postDataJSON();

View File

@@ -107,6 +107,26 @@ test.describe("User Schema Dynamic Form", () => {
});
}
if (url.includes("/password/policy")) {
console.log("Mocking /password/policy");
return route.fulfill({
json: {
minLength: 12,
lowercase: true,
uppercase: true,
number: true,
nonAlphanumeric: true,
},
});
}
if (url.includes("/rp-history")) {
console.log("Mocking /rp-history");
return route.fulfill({
json: [],
});
}
if (url.includes("/admin/tenants")) {
console.log("Mocking /admin/tenants");
return route.fulfill({