* feat(infra): backend cookiecutter template with fastapi tortoise * feat(infra): cli cookiecutter template with typer entry point * feat(infra): fullstack cookiecutter template with sveltekit frontend * test(infra): cookiecutter template tests and render fixes * style(infra): ruff cleanup for cookiecutter template tests * style(infra): ruff format cookiecutter template tests * fix(infra): handle use_db no use_auth no in cookiecutter --------- Co-authored-by: opencode-agent <agent@opencode.local>
12 lines
No EOL
403 B
JavaScript
12 lines
No EOL
403 B
JavaScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('homepage shows the project title', async ({ page }) => {
|
|
await page.goto('/');
|
|
await expect(page.locator('h1')).toContainText('{{ cookiecutter.project_name }}');
|
|
});
|
|
|
|
test('counter increments on click', async ({ page }) => {
|
|
await page.goto('/');
|
|
const buttons = page.getByRole('button');
|
|
await expect(buttons.first()).toBeVisible();
|
|
}); |