We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d250dd4 commit 39475f7Copy full SHA for 39475f7
docs/config/processors/protractor-generate.js
@@ -33,7 +33,8 @@ module.exports = {
33
innerTest: file.fileContents,
34
pathPrefix: '.', // Hold for if we test with full jQuery
35
exampleId: example.id,
36
- description: example.doc.id
+ description: example.doc.id,
37
+ 'ng-app-included': example['ng-app-included']
38
};
39
40
if (env === 'jquery') {
docs/config/templates/protractorTests.template.js
@@ -1,7 +1,10 @@
1
describe("{$ doc.description $}", function() {
2
+ var rootEl;
3
beforeEach(function() {
4
+ rootEl = browser.rootEl;{% if doc['ng-app-included'] %}
5
+ browser.rootEl = '[ng-app]';{% endif %}
6
browser.get("{$ doc.pathPrefix $}/{$ doc.examplePath $}");
7
});
-
8
+ {% if doc['ng-app-included'] %}afterEach(function() { browser.rootEl = rootEl; });{% endif %}
9
{$ doc.innerTest $}
10
0 commit comments