ONYXSimple/tests/e2e/frontend.e2e.spec.ts
Z8MB1E 471f9a3aea refactor: update project references and configurations for ONYXSimple
- Changed favicon and logo references to ONYXSimple
- Updated package.json to modify start command and add deploy scripts
- Adjusted layout and page metadata to reflect ONYXSimple branding
- Enhanced marquee animation with dynamic duration
- Added robots.txt and sitemap.xml for SEO
- Refactored various components for consistency and clarity
2026-04-29 14:54:10 -04:00

17 lines
497 B
TypeScript

import { test, expect, Page } from '@playwright/test'
test.describe('Frontend', () => {
let page: Page
test.beforeAll(async ({ browser }, testInfo) => {
const context = await browser.newContext()
page = await context.newPage()
})
test('can load homepage', async ({ page }) => {
await page.goto('http://localhost:3000')
await expect(page).toHaveTitle(/ONYXSimple/)
const heading = page.locator('h1').first()
await expect(heading).toHaveText('ONYXSimple')
})
})