mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
19 lines
757 B
TypeScript
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');
|
|
});
|
|
});
|