Files
angular__angular/e2e/components/icon-e2e.spec.ts
T
Paul Gschwendtner 589dc05149 build: enable no-unused-variable lint rule (#5184)
* Now TSLint starts reporting unused variables again (Rule has been un-deprecated and now uses the type checker
* In favor of linting the whole project the tsconfig file inside of `src/` needs to live in the project root.
2017-07-07 11:42:52 -07:00

25 lines
601 B
TypeScript

import {browser, by, element} from 'protractor';
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');
});
it('should have the correct role when used', () => {
expect(testIcon.getAttribute('role')).toBe('img');
});
});
});