Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const mockEvent = {
title: 'Test Event',
description: 'Test description',
location: 'Test Location',
startDate: '2025-12-01',
endDate: '2025-12-02',
startDate: 1764547200, // 2025-12-01
endDate: 1764633600, // 2025-12-02
}

describe('CalendarButton Accessibility', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ describe('CardDetailsPage a11y', () => {
name: 'Intro to Web',
description: 'A beginner friendly module.',
experienceLevel: ExperienceLevelEnum.Beginner,
startedAt: '2025-01-01',
endedAt: '2025-03-01',
startedAt: 1735689600, // 2025-01-01
endedAt: 1740787200, // 2025-03-01
mentors: [
{
id: 'mentor-mentor1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const createMockMilestone = (overrides: Partial<Milestone> = {}): Milestone => (
author: createMockUser(),
body: 'Test milestone description',
closedIssuesCount: 5,
createdAt: '2023-01-01T00:00:00Z',
createdAt: 1672531200, // 2023-01-01T00:00:00Z
openIssuesCount: 3,
organizationName: 'test-org',
progress: 75,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const baseMockProgram: Program = {
name: 'Test Program',
description: 'This is a test program description',
status: ProgramStatusEnum.Published,
startedAt: '2024-01-01T00:00:00Z',
endedAt: '2024-12-31T12:00:00Z',
startedAt: 1704067200,
endedAt: 1735646400,
userRole: 'admin',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ const minimalData = [
{
id: 'mock-pull-request',
author: mockUser,
createdAt: '2024-06-01T12:00:00Z',
createdAt: 1717243200,
organizationName: 'test-org',
repositoryName: 'test-repo',
title: 'Test Pull Request',
url: 'https://github.com/test-org/test-repo/pull/1',
state: 'open',
mergedAt: '2024-06-02T12:00:00Z',
mergedAt: 1717329600,
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const mockModule: Module = {
avatarUrl: 'https://example.com/avatar2.jpg',
},
],
startedAt: '2024-01-01T00:00:00Z',
endedAt: '2024-12-31T23:59:59Z',
startedAt: 1704067200,
endedAt: 1735689599,
domains: ['frontend', 'backend'],
tags: ['react', 'nodejs'],
labels: ['good first issue', 'bug'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const defaultProps = {
key: 'test-snapshot-1',
title: 'Test Snapshot',
button: { label: 'Open', onclick: jest.fn() },
startAt: '2025-01-01T00:00:00Z',
endAt: '2025-01-10T00:00:00Z',
startAt: 1735689600,
endAt: 1736467200,
}

describe('SnapshotCard a11y', () => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/__tests__/a11y/pages/MyMentorship.a11y.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const mockProgramData = {
name: 'Test Program',
description: 'Test Description',
status: 'draft',
startedAt: '2025-07-28',
endedAt: '2025-08-10',
startedAt: 1753660800,
endedAt: 1754784000,
experienceLevels: ['beginner'],
menteesLimit: 10,
admins: [],
Expand Down
44 changes: 22 additions & 22 deletions frontend/__tests__/e2e/data/mockHomeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const mockHomeData = {
data: {
recentProjects: [
{
createdAt: '2025-03-05T13:49:06+00:00',
createdAt: 1741182546,
key: 'project_1',
leaders: ['Leader 1', 'Leader 2'],
name: 'Project 1',
Expand All @@ -11,7 +11,7 @@ export const mockHomeData = {
type: 'documentation',
},
{
createdAt: '2025-03-05T13:45:28+00:00',
createdAt: 1741182328,
key: 'eks-goat',
leaders: ['Leader 3', 'Leader 4'],
name: 'OWASP EKS Goat',
Expand All @@ -20,7 +20,7 @@ export const mockHomeData = {
type: 'code',
},
{
createdAt: '2025-03-03T16:23:05+00:00',
createdAt: 1741019585,
key: 'dojo-shield',
leaders: ['Leader 5', 'Leader 6'],
name: 'OWASP Dojo Shield',
Expand All @@ -33,42 +33,42 @@ export const mockHomeData = {
{
authorName: 'Author 1',
authorImageUrl: 'https://owasp.org/assets/images/people/shruti_kulkarni.jpeg',
publishedAt: '2025-03-06T07:00:00+00:00',
publishedAt: 1741244400,
title: 'Post 1',
url: 'https://owasp.org/blog/2025/03/06/owasp-education-and-training-committee-update.html',
},
{
authorName: 'Author 2',
authorImageUrl: 'https://owasp.org/assets/images/people/leader_springett.png',
publishedAt: '2025-02-24T07:00:00+00:00',
publishedAt: 1740380400,
title: 'Post 2',
url: 'https://owasp.org/blog/2025/02/24/advisory-on-implementation-of-software-bill-of-materials-for-vulnerability-management.html',
},
{
authorName: 'Author 3',
authorImageUrl: 'https://owasp.org/assets/images/people/leader_bjoern.jpg',
publishedAt: '2025-01-29T07:00:00+00:00',
publishedAt: 1738130400,
title: 'Author 3',
url: 'https://owasp.org/blog/2025/01/29/juice-shop-leadership.html',
},
],
recentChapters: [
{
createdAt: '2025-03-18T01:03:09+00:00',
createdAt: 1742259789,
key: 'chapter_1',
leaders: ['Leader 1', 'Leader 3'],
name: 'Chapter 1',
suggestedLocation: 'Pune, Maharashtra, India',
},
{
createdAt: '2025-03-13T00:01:01+00:00',
createdAt: 1741827661,
key: 'chapter_2',
leaders: ['Leader 1', 'Leader 2'],
name: 'Chapter 2',
suggestedLocation: 'Location 2',
},
{
createdAt: '2025-02-25T02:04:57+00:00',
createdAt: 1740449097,
key: 'chapter_3',
leaders: ['Leader 1', 'Leader 2'],
name: 'Chapter 3',
Expand All @@ -94,7 +94,7 @@ export const mockHomeData = {
],
recentIssues: [
{
createdAt: '2025-03-20T14:03:10+00:00',
createdAt: 1742479390,
title: 'Issue 1',
repositoryName: 'Dependency-Track',
url: 'https://github.com/DependencyTrack/hyades/issues/1724',
Expand All @@ -105,7 +105,7 @@ export const mockHomeData = {
},
},
{
createdAt: '2025-03-20T10:30:33+00:00',
createdAt: 1742466633,
title: 'Issue 2',
repositoryName: 'BLT',
url: 'https://github.com/OWASP-BLT/BLT/issues/4013',
Expand All @@ -116,7 +116,7 @@ export const mockHomeData = {
},
},
{
createdAt: '2025-03-20T09:36:39+00:00',
createdAt: 1742463399,
title: 'Troubleshooting the OWASP Dependency-Check Scanner',
repositoryName: 'devguard',
url: 'https://github.com/l3montree-dev/devguard/issues/336',
Expand All @@ -135,7 +135,7 @@ export const mockHomeData = {
name: '',
},
name: 'Release 1',
publishedAt: '2025-03-19T13:51:35+00:00',
publishedAt: 1742392295,
repositoryName: 'repo-1',
tagName: 'v2.1.0',
url: 'https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v2.1.0',
Expand All @@ -147,7 +147,7 @@ export const mockHomeData = {
name: 'Arkadii Yakovets',
},
name: 'Release 2',
publishedAt: '2025-03-20T01:41:36+00:00',
publishedAt: 1742434896,
repositoryName: 'Nest',
tagName: '0.1.25',
url: 'https://github.com/OWASP/Nest/releases/tag/0.1.25',
Expand All @@ -159,7 +159,7 @@ export const mockHomeData = {
name: 'author 3',
},
name: 'v4.14.0',
publishedAt: '2025-03-18T12:24:40+00:00',
publishedAt: 1742300680,
repositoryName: 'secureCodeBox',
tagName: 'v4.14.0',
url: 'https://github.com/secureCodeBox/secureCodeBox/releases/tag/v4.14.0',
Expand All @@ -177,7 +177,7 @@ export const mockHomeData = {
closedIssuesCount: 15,
repositoryName: 'Home Repo One',
organizationName: 'OWASP',
createdAt: '2025-03-01T10:00:00Z',
createdAt: 1740823200,
url: 'https://github.com/OWASP/repo-one/milestone/1',
},
],
Expand Down Expand Up @@ -214,32 +214,32 @@ export const mockHomeData = {
upcomingEvents: [
{
category: 'APPSEC_DAYS',
endDate: '2025-04-06',
endDate: 1743897600,
key: 'event_1',
name: 'Event 1',
startDate: '2025-04-05',
startDate: 1743811200,
summary:
'The OWASP Boston Application Security Conference 2025 will take place on April 5, 2025. This event is organized by the Boston chapter of OWASP and features presenters and workshops. The focus will be on the latest trends in application security. It is an opportunity for attendees to learn and engage with experts in the field.',
suggestedLocation: 'Boston, USA',
url: 'https://basconf.org',
},
{
category: 'PARTNER',
endDate: '2025-05-23',
endDate: 1747958400,
key: 'event_2',
name: 'Event 2',
startDate: '2025-05-19',
startDate: 1747612800,
summary:
'The github 2025 event will take place in Oslo from May 19 to May 23, 2025. Attendees can find discounted tickets by using the provided link. This event will focus on various topics related to technology and development. It promises to be an informative experience for those interested in these fields.',
suggestedLocation: 'Oslo, Norway',
url: 'https://event.checkin.no/82562/ndc-oslo-2025?action=campaignInvite&campaignInviteHash=ZGF3bi5haXRrZW5Ab3dhc3AuY29t&campaignInviteId=4927',
},
{
category: 'GLOBAL',
endDate: '2025-05-30',
endDate: 1748563200,
key: 'event_3',
name: 'Event 3',
startDate: '2025-05-26',
startDate: 1748217600,
summary:
'The OWASP Global AppSec EU 2025 event will take place from May 26 to May 30, 2025. The location for this event has not been specified in the information provided. This event focuses on application security and brings together professionals from around the world. Participants will have the opportunity to learn and share knowledge about improving security in software development.',
suggestedLocation: 'Barcelona, Spain',
Expand Down
28 changes: 14 additions & 14 deletions frontend/__tests__/mockData/mockHomeData.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
export const mockGraphQLData = {
recentProjects: [
{
createdAt: '2024-12-06T20:46:54+00:00',
createdAt: 1734158694,
key: 'gamesec-framework',
leaders: ['Project Leader1', 'Project Leader2'],
name: 'OWASP GameSec Framework',
type: 'Tool',
url: '/projects/gamesec-framework',
},
{
createdAt: '2024-12-06T20:46:54+00:00',
createdAt: 1734158694,
key: 'owasp-project-2',
leaders: ['Project Leader1', 'Project Leader2'],
name: 'OWASP project 2',
type: 'Documentation',
url: '/projects/owasp-project-2',
},
{
createdAt: '2024-12-06T20:46:54+00:00',
createdAt: 1734158694,
key: 'owasp-project-3',
leaders: ['Project Leader1', 'Project Leader2'],
name: 'OWASP project 3',
type: 'Code',
url: '/projects/owasp-project-3',
},
{
createdAt: '2024-12-06T20:46:54+00:00',
createdAt: 1734158694,
key: 'owasp-project-4',
leaders: ['Project Leader1', 'Project Leader2'],
name: 'OWASP project 4',
type: 'Other',
url: '/projects/owasp-project-4',
},
{
createdAt: '2024-12-06T20:46:54+00:00',
createdAt: 1734158694,
key: 'owasp-project-5',
leaders: ['Project Leader1', 'Project Leader2'],
name: 'OWASP project 5',
Expand All @@ -45,7 +45,7 @@ export const mockGraphQLData = {
{
authorName: 'Author 1',
authorImageUrl: 'https://owasp.org/assets/images/people/author1.png',
publishedAt: '2024-12-14T06:44:54+00:00',
publishedAt: 1734158694,
title: 'Post 1',
url: 'https://owasp.org/blog/post-1.html',
},
Expand All @@ -58,7 +58,7 @@ export const mockGraphQLData = {
],
recentChapters: [
{
createdAt: '2024-12-14T06:44:54+00:00',
createdAt: 1734158694,
key: 'sivagangai',
leaders: ['Chapter Leader1', 'Chapter Leader2'],
name: 'OWASP Sivagangai',
Expand All @@ -75,7 +75,7 @@ export const mockGraphQLData = {
],
recentIssues: [
{
createdAt: '2024-12-14T06:44:54+00:00',
createdAt: 1734158694,
number: 177,
title: 'Documentation : Project Setup Documentation Update',
author: {
Expand All @@ -94,7 +94,7 @@ export const mockGraphQLData = {
},
isPreRelease: false,
name: 'v0.9.2',
publishedAt: '2024-12-13T14:43:46+00:00',
publishedAt: 1734098626,
tagName: 'v0.9.2',
url: 'https://github.com/owasp/owasp-nest/releases/tag/v0.9.2',
},
Expand All @@ -111,7 +111,7 @@ export const mockGraphQLData = {
closedIssuesCount: 15,
repositoryName: 'Home Repo One',
organizationName: 'OWASP',
createdAt: '2025-03-01T10:00:00Z',
createdAt: 1740823200,
url: 'https://github.com/OWASP/repo-one/milestone/1',
},
],
Expand All @@ -125,17 +125,17 @@ export const mockGraphQLData = {
upcomingEvents: [
{
category: 'Category 1',
endDate: '2025-02-28',
endDate: 1740769800,
name: 'Event 1',
startDate: '2025-02-27',
startDate: 1740640200,
summary: 'Event Summary',
suggestedLocation: 'Location 1',
url: 'https://nest.owasp.org/events/event-1',
},
],
recentPullRequests: [
{
createdAt: '2025-03-25T10:00:00Z',
createdAt: 1742896800,
title: 'Fix authentication bug',
author: {
name: 'John Doe',
Expand All @@ -145,7 +145,7 @@ export const mockGraphQLData = {
url: 'https://github.com/example/repo/pull/1',
},
{
createdAt: '2025-03-24T15:30:00Z',
createdAt: 1742830200,
title: 'Add new feature',
author: {
login: 'jane-smith',
Expand Down
4 changes: 2 additions & 2 deletions frontend/__tests__/mockData/mockModuleData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ export const mockModuleData = {
name: 'Intro to Web',
description: 'A beginner friendly module.',
experienceLevel: 'beginner',
startedAt: '2025-01-01',
endedAt: '2025-03-01',
startedAt: 1735689600,
endedAt: 1740787200,
mentors: [{ login: 'mentor1' }],
tags: ['tag1'],
domains: ['domain1'],
Expand Down
Loading