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:
37
zonemaster-gui/e2e/FR22.e2e-spec.ts
Normal file
37
zonemaster-gui/e2e/FR22.e2e-spec.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import { test, expect } from './global-setup';
|
||||
|
||||
import { goToHome, setLang } from './utils/app.utils';
|
||||
|
||||
test.describe('Zonemaster test FR22 - [Provide the possibility to see more information about encountered errors ' +
|
||||
'within the simple view]', () => {
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await goToHome(page);
|
||||
await setLang(page, 'en');
|
||||
await page.waitForLoadState('networkidle');
|
||||
});
|
||||
|
||||
test('can toggle modules', async ({ page }) => {
|
||||
await expect(page.locator('.zm-domain-test__progress-bar')).toHaveCount(0);
|
||||
await page.locator('input[name="domain"]').first().focus();
|
||||
|
||||
await page.keyboard.type('results.afNiC.Fr');
|
||||
await page.keyboard.press('Enter');
|
||||
|
||||
const basicHeader = page.locator('#zmModule-Basic .zm-result__module__title');
|
||||
const basicHeaderButton = page.locator('#zmModule-Basic .zm-result__module__title button');
|
||||
const basicContent = page.locator('#zmModule-Basic-content');
|
||||
|
||||
await expect(basicHeader).toBeVisible({ timeout: 10000 });
|
||||
await expect(basicHeader).toHaveText(/Basic/i);
|
||||
await expect(basicContent).toHaveCount(0);
|
||||
|
||||
await basicHeaderButton.click();
|
||||
|
||||
await expect(basicContent).toHaveCount(1);
|
||||
|
||||
await basicHeaderButton.click();
|
||||
|
||||
await expect(basicContent).toHaveCount(0);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user