mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2025-06-25 16:43:30 +02:00
28 lines
958 B
TypeScript
28 lines
958 B
TypeScript
const { test, expect } = require('@playwright/test');
|
|
|
|
import { goToHome, setLang, showOptions } from './utils/app.utils';
|
|
|
|
test.describe('Zonemaster test FR03 - [All appropriate fields should be writable]', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await goToHome(page);
|
|
await setLang(page, 'en');
|
|
});
|
|
|
|
test('should be able to write in the main input', async ({ page }) => {
|
|
const testString = 'afnic.fr';
|
|
|
|
const domainInput = page.locator('#domain-input');
|
|
await domainInput.type(testString);
|
|
await expect(domainInput).toHaveValue(testString);
|
|
|
|
await showOptions(page);
|
|
|
|
const nsInput = page.locator('input[formControlName="ns"]').first();
|
|
await nsInput.type(testString);
|
|
await expect(nsInput).toHaveValue(testString);
|
|
|
|
const keytagInput = page.locator('input[formControlName="keytag"]').first();
|
|
await keytagInput.type(testString);
|
|
await expect(keytagInput).toHaveValue(testString);
|
|
});
|
|
});
|