-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for the research team page
Signed-off-by: Nathen Harvey <[email protected]>
- Loading branch information
1 parent
643ae13
commit 34b0530
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}); |