Skip to content

Commit

Permalink
Integration test mentorship overview (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimat1 authored Dec 6, 2024
1 parent f36c061 commit cccd613
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions integration-test/tests/cms/mentorshipoverview.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {expect, test} from '@playwright/test';
test('GET /api/cms/v1/mentorship/overview returns correct data', async ({request}) => {
const response = await request.get('/api/cms/v1/mentorship/overview');
expect(response.status()).toBe(200);
const data = await response.json();
expect(data.page).toBeDefined();
expect(data.page.title).toBe('Mentorship Programme');
expect(data.mentorSection).toBeDefined();
expect(data.mentorSection.title).toBe('Become a Mentor');
expect(data.menteeSection).toBeDefined();
expect(data.menteeSection.title).toBe('Become a Mentee');
});

0 comments on commit cccd613

Please sign in to comment.