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>
This commit is contained in:
36
zonemaster-gui/e2e/FR13.e2e-spec.ts
Normal file
36
zonemaster-gui/e2e/FR13.e2e-spec.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import {test, expect} from './global-setup';
|
||||
|
||||
import {goToHome, setLang, showOptions} from './utils/app.utils';
|
||||
|
||||
test.describe.serial('Zonemaster test FR13 - [The advanced view should support the possibility of enabling or disabling IPv4 or IPv6]', () => {
|
||||
test.beforeEach(async ({page}) => {
|
||||
await goToHome(page);
|
||||
await setLang(page, 'en');
|
||||
await page.waitForLoadState('networkidle');
|
||||
await showOptions(page);
|
||||
await page.waitForTimeout(400);
|
||||
});
|
||||
|
||||
test('should have [IPv4 and IPv6 radio] & [IPv4 only radio] & [IPv6 only radio] visible and disabled', async ({page}) => {
|
||||
await showOptions(page);
|
||||
await page.waitForTimeout(400);
|
||||
await expect(page.locator('input[name="iptype"][value="both"]')).toBeVisible();
|
||||
await expect(page.locator('input[name="iptype"][value="ipv4"]')).not.toBeChecked();
|
||||
await expect(page.locator('input[name="iptype"][value="ipv6"]')).not.toBeChecked();
|
||||
});
|
||||
|
||||
test('should be possible to enable [IPv4 only radio]', async ({page}) => {
|
||||
await page.locator('input[name="iptype"][value="ipv4"]').click();
|
||||
await expect(page.locator('input[name="iptype"][value="ipv4"]')).toBeChecked();
|
||||
});
|
||||
|
||||
test('should have [IPv6 only radio] visible and disabled', async ({ page }) => {
|
||||
await expect(page.locator('input[name="iptype"][value="ipv6"]')).toBeVisible();
|
||||
await expect(page.locator('input[name="iptype"][value="ipv6"]')).not.toBeChecked();
|
||||
});
|
||||
|
||||
test('should be possible to enable [IPv6 only]', async ({ page }) => {
|
||||
await page.locator('input[name="iptype"][value="ipv6"]').click();
|
||||
await expect(page.locator('input[name="iptype"][value="ipv6"]')).toBeChecked();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user