Skip to content

Commit bd9047b

Browse files
committed
fix(seed): update user ID property names in assignment seeding functions
1 parent 5e35f32 commit bd9047b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/frontend/e2e/helpers/seed.helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function seedPlaywrightAssignments(
8282

8383
// Fetch user IDs by role
8484
const usersRes = await axios.get<{
85-
data: Array<{ id: string; email: string; role: string }>;
85+
data: Array<{ userId: string; email: string; role: string }>;
8686
}>(`${BACKEND_URL}/admin/users`, { headers });
8787
const users = usersRes.data.data;
8888

@@ -98,7 +98,7 @@ export async function seedPlaywrightAssignments(
9898
try {
9999
await axios.post(
100100
`${BACKEND_URL}/admin/assignments/uploaders`,
101-
{ uploaderId: uploader.id, validatorId: validator.id },
101+
{ uploaderId: uploader.userId, validatorId: validator.userId },
102102
{ headers },
103103
);
104104
} catch (err) {
@@ -111,7 +111,7 @@ export async function seedPlaywrightAssignments(
111111
try {
112112
await axios.post(
113113
`${BACKEND_URL}/admin/assignments/validators`,
114-
{ validatorId: validator.id, approverId: approver.id },
114+
{ validatorId: validator.userId, approverId: approver.userId },
115115
{ headers },
116116
);
117117
} catch (err) {

0 commit comments

Comments
 (0)