- Set Spanish as default language with ephemeral/encrypted privacy focus - Translate all user-facing strings and legal pages to Spanish - Replace Norwegian flag with Spanish flag in footer - Remove Hemmelig/terces.cloud links, add cloudhost.es sponsorship - Rewrite PrivacyPage: zero data collection, ephemeral design emphasis - Rewrite TermsPage: Spanish law, RGPD, paste.es/CloudHost.es references - Update PWA manifest, HTML meta tags, package.json branding - Rename webhook headers to X-Paste-Event / X-Paste-Signature - Update API docs title and contact to paste.es / cloudhost.es Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { expect, test } from './fixtures';
|
|
|
|
test.describe('Navigation', () => {
|
|
test('should navigate to home page', async ({ authenticatedPage: page }) => {
|
|
await page.goto('/');
|
|
|
|
// Check that we're on the home page with the secret form
|
|
await expect(page.locator('.ProseMirror')).toBeVisible();
|
|
});
|
|
|
|
test('should have working logo link', async ({ authenticatedPage: page }) => {
|
|
await page.goto('/');
|
|
|
|
// Check for logo/brand link that goes to home
|
|
const logoLink = page.locator('a[href="/"]').first();
|
|
await expect(logoLink).toBeVisible();
|
|
await logoLink.click();
|
|
await expect(page).toHaveURL('/');
|
|
});
|
|
|
|
test('should handle 404 pages gracefully', async ({ authenticatedPage: page }) => {
|
|
await page.goto('/nonexistent-page-12345');
|
|
|
|
// Should show 404 page or similar error
|
|
const pageContent = await page.content();
|
|
const is404 =
|
|
pageContent.toLowerCase().includes('not found') ||
|
|
pageContent.toLowerCase().includes('404') ||
|
|
page.url().includes('/nonexistent-page');
|
|
|
|
expect(is404).toBe(true);
|
|
});
|
|
});
|