zonemaster-gui/e2e/FR14.e2e-spec.ts
2021-12-06 00:33:02 +01:00

19 lines
757 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './utils/app.utils';
describe('Zonemaster test FR14 - [The advanced view should support the possibility of choosing a profile from multiple profiles]', () => {
const utils = new Utils();
beforeAll(async () => {
await utils.goToHome();
await utils.setLang('en');
await utils.activeOptions();
});
it('should have an select form with at least one choice (default)', () => {
const selectFrom = element(by.css('select#profile'));
expect(selectFrom.isPresent()).toBe(true);
expect(selectFrom.all(by.tagName('option')).count()).toBeGreaterThan(0);
expect(selectFrom.all(by.tagName('option')).get(0).getAttribute('value')).toEqual('default');
});
});