9360aa2d27
The quotes rule had to be disabled for e2e tests generated from ngdoc because dgeni templates use double quotes as string delimiters. Since we can't have guarantees that dgeni template wrappers will follow the same JS code style the Angular 1 repo uses, we should find a way to enforce our ESLint setup only for the parts in this repo, perhaps via prepending a generated `/* eslint-enable OUR_RULES */` pragma. Closes #15011
23 lines
1006 B
JavaScript
23 lines
1006 B
JavaScript
'use strict';
|
|
|
|
describe('service pages', function() {
|
|
|
|
it('should show the related provider if there is one', function() {
|
|
browser.get('build/docs/index.html#!/api/ng/service/$compile');
|
|
var providerLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
|
|
expect(providerLink.getText()).toEqual('- $compileProvider');
|
|
expect(providerLink.getAttribute('href')).toMatch(/api\/ng\/provider\/\$compileProvider/);
|
|
|
|
browser.get('build/docs/index.html#!/api/ng/service/$q');
|
|
providerLink = element.all(by.css('ol.api-profile-header-structure li a')).first();
|
|
expect(providerLink.getText()).not.toEqual('- $compileProvider');
|
|
expect(providerLink.getAttribute('href')).not.toMatch(/api\/ng\/provider\/\$compileProvider/);
|
|
});
|
|
|
|
it('should show parameter defaults', function() {
|
|
browser.get('build/docs/index.html#!/api/ng/service/$timeout');
|
|
expect(element.all(by.css('.input-arguments p em')).first().getText()).toContain('(default: 0)');
|
|
});
|
|
|
|
});
|