Files
angular__angular/e2e/components/icon-e2e.spec.ts
T

25 lines
601 B
TypeScript
Raw Normal View History

import {browser, by, element} from 'protractor';
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'));
});
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', () => {
expect(testIcon.getAttribute('role')).toBe('img');
2016-07-11 17:46:38 -04:00
});
});
});