Files
oh-my-openagent/website/e2e/example.e2e.ts
justsisyphus 21c7d29c1d fix(website): resolve @opennextjs/cloudflare and test configuration issues
- Successfully installed @opennextjs/cloudflare v1.15.1
- Fixed Vitest configuration to exclude e2e tests
- Renamed e2e test files from .spec.ts to .e2e.ts to avoid Bun test runner conflicts
- Updated eslint.config.mjs and playwright.config.ts
- All tests passing: Vitest (1/1), Playwright (6/6)
- Production bundle size: ~5MB < 10MiB limit
- Marked TODO 0 complete in plan
2026-01-24 14:25:05 +09:00

20 lines
584 B
TypeScript

import { test, expect } from '@playwright/test';
test('has title', async ({ page }) => {
await page.goto('/');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Create Next App/);
});
test('get started link', async ({ page }) => {
await page.goto('/');
// Click the get started link.
// Note: The default Next.js template might not have a "Get started" link exactly like this,
// but we can check for something that exists.
// For now, let's just check if the main element exists.
await expect(page.locator('main')).toBeVisible();
});