bolt.diy/tests/e2e/homepage.spec.ts
2025-03-12 17:54:44 -07:00

14 lines
373 B
TypeScript

import { test, expect } from '@playwright/test';
test('should load the homepage', async ({ page }) => {
// Navigate to the homepage
await page.goto('/');
// Check that the page title is correct
const title = await page.title();
expect(title).toContain('Nut');
// Verify some key elements are visible
await expect(page.locator('header')).toBeVisible();
});