forked from baron/baron-sso
fix(ci): update Node 24 and playwright workers, fix user detail queries on create
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user