Files
zonemaster.es/zonemaster-gui/e2e/FR10.e2e-spec.ts
Malin 8d4eaa1489 feat: add full Zonemaster stack with Docker and Spanish UI
- Clone all 5 Zonemaster component repos (LDNS, Engine, CLI, Backend, GUI)
- Dockerfile.backend: 8-stage multi-stage build LDNS→Engine→CLI→Backend
- Dockerfile.gui: Astro static build served via nginx
- docker-compose.yml: backend (internal) + frontend (port 5353)
- nginx.conf: root redirects to /es/, /api/ proxied to backend
- zonemaster-gui/config.ts: defaultLanguage set to 'es' (Spanish)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 08:19:24 +02:00

25 lines
950 B
TypeScript

import { test, expect } from './global-setup';
import { goToHome, clearBrowserCache } from './utils/app.utils';
test.describe('Zonemaster test FR10 - [On launching the URL opens with a default simple view]', () => {
test.beforeEach(async ({ page }) => {
await goToHome(page);
await clearBrowserCache(page);
});
test('should have [Run domain test] label visible', async ({ page }) => {
await expect(page.locator('h1', { hasText: 'Check how your domain is doing'})).toBeVisible();
});
test('should have [Options] label visible and NOT selected', async ({ page }) => {
await expect(page.locator('#advanced-toggle-label', { hasText: 'Show options' })).toBeVisible();
await expect(page.locator('#advanced-toggle')).toHaveAttribute('aria-expanded', 'false');
});
test('should have options NOT visible', async ({ page }) => {
await expect(page.locator('#advanced-options')).toHaveAttribute('hidden');
});
});