Skip to content

Commit

Permalink
Add tests for the research team page
Browse files Browse the repository at this point in the history
Signed-off-by: Nathen Harvey <[email protected]>
  • Loading branch information
nathenharvey authored and davidstanke committed Aug 14, 2024
1 parent 643ae13 commit 34b0530
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/playwright/tests/research/team.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { test, expect } from '@playwright/test';

test.beforeEach(async ({ page }) => {
await page.goto('/research/team/');
});

test('Research Team page has the correct title.', async ({ page }) => {
await expect(page).toHaveTitle('DORA | Research Team');
});

test('Research Team page has the correct heading', async ({ page }) => {
await expect(page.locator('h1')).toContainText('Meet DORA’s Research Team');
});

test('Research Team page has correct number of researchers', async ({ page }) => {
const sizeOfResearchTeam = await page.locator('h3').count();
await expect(sizeOfResearchTeam).toBe(3);
});

test('Research Team page lists the DORA Collective', async ({ page }) => {
await expect(page.locator('h2')).toContainText('Meet the DORA Collective');
});

0 comments on commit 34b0530

Please sign in to comment.