aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngRoute/directive/ngView.js
diff options
context:
space:
mode:
authorJulie2014-02-12 15:07:08 -0800
committerPeter Bacon Darwin2014-02-16 19:03:42 +0000
commit9565cca15b6d30aefb78bcec411dea4f7b305019 (patch)
tree1c0d58d7541b7d6fb96fb1d1d068d48eb0fca97a /src/ngRoute/directive/ngView.js
parentcd508678cd9baffd2bc0c9e11ae724a7b2ff70bb (diff)
downloadangular.js-9565cca15b6d30aefb78bcec411dea4f7b305019.tar.bz2
chore(protractor tests): fix up e2e tests
Diffstat (limited to 'src/ngRoute/directive/ngView.js')
-rw-r--r--src/ngRoute/directive/ngView.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js
index f61fb121..46812430 100644
--- a/src/ngRoute/directive/ngView.js
+++ b/src/ngRoute/directive/ngView.js
@@ -151,17 +151,17 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
}
</file>
- <file name="protractorTest.js">
+ <file name="protractor.js" type="protractor">
it('should load and compile correct template', function() {
element(by.linkText('Moby: Ch1')).click();
- var content = element(by.css('.doc-example-live [ng-view]')).getText();
+ var content = element(by.css('[ng-view]')).getText();
expect(content).toMatch(/controller\: ChapterCntl/);
expect(content).toMatch(/Book Id\: Moby/);
expect(content).toMatch(/Chapter Id\: 1/);
element(by.partialLinkText('Scarlet')).click();
- content = element(by.css('.doc-example-live [ng-view]')).getText();
+ content = element(by.css('[ng-view]')).getText();
expect(content).toMatch(/controller\: BookCntl/);
expect(content).toMatch(/Book Id\: Scarlet/);
});