Skip to content

Commit

Permalink
Integration test team
Browse files Browse the repository at this point in the history
  • Loading branch information
nimat1 committed Dec 10, 2024
1 parent e57294d commit 7e72b7b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions integration-test/tests/cms/team.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/team returns correct data', async ({request}) => {
const response = await request.get('/api/cms/v1/team');
expect(response.status()).toBe(200);
const data = await response.json();
expect(response).toBeDefined();
expect(data.page).toBeDefined();
expect(data.page.title).toBe('Team');
expect(data.contact).toBeDefined();
expect(data.contact.title).toBe('Contact us');
});

0 comments on commit 7e72b7b

Please sign in to comment.