mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
29 lines
896 B
TypeScript
29 lines
896 B
TypeScript
import { by, browser, element } from 'protractor';
|
|
|
|
import { Utils } from './pages/app.utils';
|
|
|
|
describe('Zonemaster test GR17 - [All buttons should be clickable in latest version of different browsers]', () => {
|
|
const utils = new Utils();
|
|
beforeAll(() => {
|
|
utils.goToHome();
|
|
});
|
|
|
|
it('should display error message', () => {
|
|
element(by.css('form.domain a')).click();
|
|
browser.sleep(100).then(
|
|
() => {
|
|
expect(element(by.css('.alert.alert-danger')).isPresent()).toBe(false);
|
|
}
|
|
);
|
|
});
|
|
it('should display error message', () => {
|
|
expect(browser.protractorImageComparison.checkScreen('domain.error_submit_without_domain')).toBeLessThan(1);
|
|
});
|
|
it('should remove error message after 5secs', () => {
|
|
browser.sleep(10000).then(
|
|
() => {
|
|
expect(element(by.css('.alert.alert-danger')).isPresent()).toBe(false);
|
|
}
|
|
);
|
|
});
|
|
});
|