Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e79dec commit 4b7398eCopy full SHA for 4b7398e
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