mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
25 lines
998 B
TypeScript
25 lines
998 B
TypeScript
import { by, browser, element } from 'protractor';
|
|
|
|
import { Utils } from './utils/app.utils';
|
|
|
|
describe('Zonemaster test FR03 - [All appropriate fields should be writable]', () => {
|
|
const utils = new Utils();
|
|
beforeAll(async () => {
|
|
await utils.goToHome();
|
|
await utils.setLang('en');
|
|
});
|
|
|
|
it('should be able to write in the main input', () => {
|
|
element(by.css('#domain_check_name')).sendKeys('afnic.fr');
|
|
expect(element(by.css('#domain_check_name')).getAttribute('value')).toBe('afnic.fr');
|
|
|
|
utils.activeOptions();
|
|
expect(element(by.css('#domain_check_name')).getAttribute('value')).toBe('afnic.fr');
|
|
|
|
element(by.css('input[formControlName="ns"]')).sendKeys('afnic.fr');
|
|
expect(element(by.css('input[formControlName="ns"]')).getAttribute('value')).toBe('afnic.fr');
|
|
|
|
element(by.css('input[formControlName="keytag"]')).sendKeys('afnic.fr');
|
|
expect(element(by.css('input[formControlName="keytag"]')).getAttribute('value')).toBe('afnic.fr');
|
|
});
|
|
});
|