mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-30 13:39:35 +02:00
test(editor): Fix flaky UI tests by preventing truncated project names (no-changelog) (#15919)
This commit is contained in:
1 parent
2e18e07070
commit
702eafaf8e
1 file changed
+2
-1
@@ -6,10 +6,11 @@ import type {
|
||||
ProjectType,
|
||||
} from '@/types/projects.types';
|
||||
import { ProjectTypes } from '@/types/projects.types';
|
||||
import { MAX_NAME_LENGTH } from '@/utils/projects.utils';
|
||||
|
||||
export const createProjectSharingData = (projectType?: ProjectType): ProjectSharingData => ({
|
||||
id: faker.string.uuid(),
|
||||
name: faker.lorem.words({ min: 1, max: 3 }),
|
||||
name: faker.lorem.words({ min: 1, max: 3 }).slice(0, MAX_NAME_LENGTH).trimEnd(),
|
||||
icon: { type: 'icon', value: 'folder' },
|
||||
type: projectType ?? ProjectTypes.Personal,
|
||||
createdAt: faker.date.past().toISOString(),
|
||||
|
||||
Reference in new issue
Block a user