Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ainsofs committed Apr 10, 2024
1 parent 12507a5 commit 3cbae74
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ import { expect, test } from '@playwright/test';
test('Hero section has expected p', async ({ page }) => {
await page.goto('/');
await expect(
page.getByText(
'Press Join us Now to find out more about becoming a Samoa Code Hub Member'
)
page.getByText('Press Join us Now to find out more about becoming a Samoa Code Hub Member')
).toBeVisible();
});


test('Clicking "Projects" button navigates to projects page and displays Featured Projects h1', async ({ page }) => {
await page.goto('/');
await page.click('text=Projects');
await expect(page.locator('h1:has-text("Featured Projects")')).toBeVisible();
});

test('Media section has expected h1', async ({ page }) => {
await page.goto('/');
await expect(page.getByText('Samoa Code Hub Meet Ups')).toBeVisible();
Expand Down

0 comments on commit 3cbae74

Please sign in to comment.