mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
/**
|
|
* Created by pamasse on 05/11/2017.
|
|
*/
|
|
import {protractor, by, browser, element } from 'protractor';
|
|
|
|
import { Utils } from './utils/app.utils';
|
|
|
|
describe('Zonemaster test FR20 - [The user must be able to submit one or more DS record(s) for use with DNSSEC]', () => {
|
|
const utils = new Utils();
|
|
beforeAll(async () => {
|
|
await utils.goToHome();
|
|
await utils.setLang('en');
|
|
await utils.activeOptions();
|
|
});
|
|
|
|
it('should display progress bar when we add a DS entry and launch a test', async() => {
|
|
await expect(element.all(by.css('.progress-result')).isPresent()).toBe(false);
|
|
await element(by.css('#domain_check_name')).sendKeys('afNiC.Fr');
|
|
await element(by.css('input[formControlName="keytag"]')).sendKeys('37610');
|
|
await element(by.css('input[formControlName="digest"]')).sendKeys('d2681e301f632bd76544e6d5b6631a12d97b5479ff07cd24efecd19203c77db3');
|
|
await element(by.cssContainingText('select[formControlName="algorithm"] > option', 'RSASHA256')).click();
|
|
await element(by.cssContainingText('select[formControlName="digtype"] > option', 'SHA-256')).click();
|
|
await element(by.css('div button.launch')).click();
|
|
await element(by.css('div button.launch')).click();
|
|
await browser.wait(() => element(by.css('.progress-bar')).isPresent(), 2 * 1000);
|
|
await expect(element.all(by.css('.progress-result')).isPresent()).toBe(true);
|
|
});
|
|
});
|