2016-12-19 20:17:23 +02:00
|
|
|
import {browser, by, element} from 'protractor';
|
|
|
|
|
|
2017-06-01 17:49:20 +02:00
|
|
|
|
2016-07-11 17:46:38 -04:00
|
|
|
describe('icon', () => {
|
|
|
|
|
describe('font icons by ligature', () => {
|
|
|
|
|
let testIcon: any;
|
|
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
|
browser.get('/icon');
|
|
|
|
|
testIcon = element(by.id('test-icon'));
|
|
|
|
|
});
|
|
|
|
|
|
2017-06-01 17:49:20 +02:00
|
|
|
it('should have the correct class when used', async () => {
|
|
|
|
|
const attr = await testIcon.getAttribute('class');
|
|
|
|
|
|
|
|
|
|
expect(attr).toContain('md-24');
|
|
|
|
|
expect(attr).toContain('material-icons');
|
2016-07-11 17:46:38 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should have the correct role when used', () => {
|
2017-06-01 17:49:20 +02:00
|
|
|
expect(testIcon.getAttribute('role')).toBe('img');
|
2016-07-11 17:46:38 -04:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|