mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
589dc05149
* 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.
25 lines
601 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|