Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions tests/e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
test.beforeEach(async ({ page }) => {
await page.goto('/');
});

test('has title', async ({ page }) => {
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Rahul Jain/);
});

test('has main heading', async ({ page }) => {
await page.goto('/');

// Expect the main heading to be visible
await expect(page.locator('h1.title')).toBeVisible();
});

test('has social links', async ({ page }) => {
await page.goto('/');

// Check for social links
await Promise.all([
expect(page.getByLabel('Stack Overflow')).toBeVisible(),
Expand Down
Loading