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:
49
zonemaster-gui/e2e/FR17.e2e-spec.ts
Normal file
49
zonemaster-gui/e2e/FR17.e2e-spec.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
import {test, expect} from './global-setup';
|
||||
|
||||
import {goToHome, setLang, showOptions} from './utils/app.utils';
|
||||
|
||||
test.describe.serial('Zonemaster test FR17 - [Able to specify delegation parameters]', () => {
|
||||
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 one ns and digest form', async ({ page }) => {
|
||||
await expect(page.locator('fieldset.zm-domain-test__nameservers')).toHaveCount(1);
|
||||
await expect(page.locator('fieldset.zm-domain-test__records')).toHaveCount(1);
|
||||
await expect(page.locator('input[name="nameservers[0][ns]"]')).toHaveCount(1);
|
||||
await expect(page.locator('input[name="ds_info[0][keytag]"]')).toHaveCount(1);
|
||||
});
|
||||
|
||||
test('should be possible to add new ns form', async ({ page }) => {
|
||||
await page.locator('input[name="nameservers[0][ns]"]').first().focus();
|
||||
|
||||
await page.keyboard.type('ns2.nic.fr');
|
||||
|
||||
await expect(page.locator('input[name="nameservers[1][ns]"]')).toHaveCount(1);
|
||||
await expect(page.locator('input[name="ds_info[1][keytag]"]')).toHaveCount(0);
|
||||
});
|
||||
|
||||
test('should be possible to add new digest form', async ({ page }) => {
|
||||
await page.locator('input[name="ds_info[0][keytag]"]').first().focus();
|
||||
|
||||
await page.keyboard.type('12345');
|
||||
|
||||
await expect(page.locator('input[name="nameservers[1][ns]"]')).toHaveCount(0);
|
||||
await expect(page.locator('input[name="ds_info[1][keytag]"]')).toHaveCount(1);
|
||||
});
|
||||
|
||||
test('should be possible to delete ns forms', async ({ page }) => {
|
||||
await page.locator('input[name="nameservers[0][ns]"]').first().focus();
|
||||
|
||||
await page.keyboard.type('ns2.nic.fr');
|
||||
|
||||
await expect(page.locator('input[name="nameservers[1][ns]"]')).toHaveCount(1);
|
||||
|
||||
await page.locator('fieldset.zm-domain-test__nameserver > div > div > button').first().click();
|
||||
await expect(page.locator('input[name="nameservers[1][ns]"]')).toHaveCount(0);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user