- 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>
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { test, expect } from './global-setup';
|
|
|
|
import { setLang } from './utils/app.utils';
|
|
|
|
|
|
test.describe('Zonemaster test FR23 - [Provide a list of previous runs for the domain and should be paginated]', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto('/');
|
|
await setLang(page, 'en');
|
|
await page.waitForLoadState('networkidle');
|
|
});
|
|
|
|
test('should display previous tests', async ({ page }) => {
|
|
await page.locator('input[name="domain"]').first().focus();
|
|
|
|
await page.keyboard.type('results.afNiC.Fr');
|
|
await page.keyboard.press('Enter');
|
|
|
|
const historyButton = page.locator('#zmHistoryButton');
|
|
|
|
await expect(historyButton).toBeVisible({ timeout: 10000 });
|
|
await expect(historyButton).toHaveText('History');
|
|
await historyButton.click();
|
|
await expect(page.locator('#historyDialog')).toBeVisible({ timeout: 10000 });
|
|
|
|
await expect(page.locator('#historyDialog li:first-child')).toHaveCount(1);
|
|
await expect(page.locator('#historyDialog footer')).toHaveCount(1);
|
|
});
|
|
});
|