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

Commit cb18343

Browse files
committedAug 13, 2014
chore(doc-gen): move e2e tests into docs folder
These tests didn't really fit in the test folder as the docs app is mostly a separate entity from the AngularJS codebase.
1 parent 631fbda commit cb18343

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed
 

‎test/e2e/docsAppE2E.js ‎docs/app/e2e/docsAppE2E.js

+10
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,14 @@ describe('docs.angularjs.org', function () {
7575
expect(element.all(by.css('.input-arguments p em')).first().getText()).toContain('(default: 0)');
7676
});
7777
});
78+
79+
describe("API pages", function() {
80+
it("should display links to code on GitHub", function() {
81+
browser.get('index-debug.html#!/api/ng/service/$http');
82+
expect(element(by.css('.improve-docs')).getAttribute('href')).toMatch(/https?:\/\/github\.com\/angular\/angular\.js\/edit\/.+\/src\/ng\/http\.js/);
83+
84+
browser.get('index-debug.html#!/api/ng/service/$http');
85+
expect(element(by.css('.view-source')).getAttribute('href')).toMatch(/https?:\/\/github\.com\/angular\/angular\.js\/tree\/.+\/src\/ng\/http\.js#L\d+/);
86+
});
87+
});
7888
});

‎protractor-conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var config = require('./protractor-shared-conf').config;
44

55
config.specs = [
66
'build/docs/ptore2e/**/*.js',
7-
'test/e2e/docsAppE2E.js'
7+
'docs/app/e2e/docsAppE2E.js'
88
];
99

1010
config.capabilities = {

‎protractor-jenkins-conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports.config = {
55

66
specs: [
77
'build/docs/ptore2e/**/*.js',
8-
'test/e2e/docsAppE2E.js'
8+
'docs/app/e2e/docsAppE2E.js'
99
],
1010

1111
capabilities: {

‎scripts/travis/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ elif [ $JOB = "e2e" ]; then
1414
if [ $TEST_TARGET = "jquery" ]; then
1515
TARGET_SPECS="build/docs/ptore2e/**/*jquery_test.js"
1616
elif [ $TEST_TARGET = "doce2e" ]; then
17-
TARGET_SPECS="test/e2e/docsAppE2E.js"
17+
TARGET_SPECS="docs/app/e2e/docsAppE2E.js"
1818
fi
1919
grunt test:travis-protractor --specs "$TARGET_SPECS"
2020
else

0 commit comments

Comments
 (0)
This repository has been archived.