-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b75d7af
commit b87dd67
Showing
5 changed files
with
70 additions
and
21 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
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
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
import { test, expect } from '@playwright/test' | ||
|
||
test('Titles are displayed', async ({ page }) => { | ||
await page.goto('/') | ||
|
||
await expect(page).toHaveTitle(/Resilience Web/) | ||
|
||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Celebrating place-based community action', | ||
}), | ||
).toBeVisible() | ||
|
||
await expect( | ||
page.getByText('Find Resilience Webs near you in the UK'), | ||
).toBeVisible() | ||
}) | ||
|
||
test('Web cards are loaded', async ({ page }) => { | ||
await page.goto('/') | ||
|
||
await expect(page.getByRole('heading', { name: 'Cambridge' })).toBeVisible() | ||
await expect(page.getByRole('heading', { name: 'Durham' })).toBeVisible() | ||
}) |
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,16 @@ | ||
import { test, expect } from '@playwright/test' | ||
|
||
test('Web title is displayed', async ({ page }) => { | ||
await page.goto('http://durham.localhost:3000') | ||
|
||
await expect( | ||
page.getByRole('heading', { level: 2, exact: true, name: 'Durham' }), | ||
).toBeVisible() | ||
}) | ||
|
||
test('Listings are loaded', async ({ page }) => { | ||
await page.goto('http://durham.localhost:3000') | ||
|
||
await expect(page.getByText('Conservation Research Institute')).toBeVisible() | ||
await expect(page.getByText('Durham Community Kitchen')).toBeVisible() | ||
}) |