From aad9d8dffc60c698663bdd8f3ad0665d4db9743a Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 29 Oct 2024 10:34:40 +0100 Subject: [PATCH] fix(tests): faker usage --- frontend/cypress/factories/link_sharing.ts | 2 +- frontend/cypress/factories/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/cypress/factories/link_sharing.ts b/frontend/cypress/factories/link_sharing.ts index 465dcd240..c420e6297 100644 --- a/frontend/cypress/factories/link_sharing.ts +++ b/frontend/cypress/factories/link_sharing.ts @@ -9,7 +9,7 @@ export class LinkShareFactory extends Factory { return { id: '{increment}', - hash: faker.random.word(32), + hash: faker.lorem.word(32), project_id: 1, right: 0, sharing_type: 0, diff --git a/frontend/cypress/factories/user.ts b/frontend/cypress/factories/user.ts index 02d9069fa..2619463fb 100644 --- a/frontend/cypress/factories/user.ts +++ b/frontend/cypress/factories/user.ts @@ -10,7 +10,7 @@ export class UserFactory extends Factory { return { id: '{increment}', - username: faker.lorem.word(10) + faker.datatype.uuid(), + username: faker.lorem.word(10) + faker.string.uuid(), password: '$2a$14$dcadBoMBL9jQoOcZK8Fju.cy0Ptx2oZECkKLnaa8ekRoTFe1w7To.', // 1234 status: 0, issuer: 'local',