Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ab35c16

Browse files
chore(app.scenario): test docs app against production libraries
We have had issues where the docs application has gone down because our build included invalid URLs to the production angular libraries. This change runs a subset of the docs e2e tests directly against these production libraries to ensure that they are accessible. If not then these tests will fail and the CI build will abort, preventing the docs app from being updated. Closes #14769
1 parent 37b6a71 commit ab35c16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/app/e2e/app.scenario.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('docs.angularjs.org', function () {
3939

4040

4141
it('should change the page content when clicking a link to a service', function () {
42-
browser.get('build/docs/index.html');
42+
browser.get('build/docs/index-production.html');
4343

4444
var ngBindLink = element(by.css('.definition-table td a[href="api/ng/directive/ngClick"]'));
4545
ngBindLink.click();
@@ -51,33 +51,33 @@ describe('docs.angularjs.org', function () {
5151

5252

5353
it('should be resilient to trailing slashes', function() {
54-
browser.get('build/docs/index.html#!/api/ng/function/angular.noop/');
54+
browser.get('build/docs/index-production.html#!/api/ng/function/angular.noop/');
5555
var pageBody = element(by.css('h1'));
5656
expect(pageBody.getText()).toEqual('angular.noop');
5757
});
5858

5959

6060
it('should be resilient to trailing "index"', function() {
61-
browser.get('build/docs/index.html#!/api/ng/function/angular.noop/index');
61+
browser.get('build/docs/index-production.html#!/api/ng/function/angular.noop/index');
6262
var pageBody = element(by.css('h1'));
6363
expect(pageBody.getText()).toEqual('angular.noop');
6464
});
6565

6666

6767
it('should be resilient to trailing "index/"', function() {
68-
browser.get('build/docs/index.html#!/api/ng/function/angular.noop/index/');
68+
browser.get('build/docs/index-production.html#!/api/ng/function/angular.noop/index/');
6969
var pageBody = element(by.css('h1'));
7070
expect(pageBody.getText()).toEqual('angular.noop');
7171
});
7272

7373

7474
it('should display formatted error messages on error doc pages', function() {
75-
browser.get('build/docs/index.html#!error/ng/areq?p0=Missing&p1=not%20a%20function,%20got%20undefined');
75+
browser.get('build/docs/index-production.html#!error/ng/areq?p0=Missing&p1=not%20a%20function,%20got%20undefined');
7676
expect(element(by.css('.minerr-errmsg')).getText()).toEqual("Argument 'Missing' is not a function, got undefined");
7777
});
7878

7979
it("should display an error if the page does not exist", function() {
80-
browser.get('build/docs/index.html#!/api/does/not/exist');
80+
browser.get('build/docs/index-production.html#!/api/does/not/exist');
8181
expect(element(by.css('h1')).getText()).toBe('Oops!');
8282
});
8383

0 commit comments

Comments
 (0)