diff options
| author | Julie | 2014-02-12 15:07:08 -0800 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:42 +0000 |
| commit | 9565cca15b6d30aefb78bcec411dea4f7b305019 (patch) | |
| tree | 1c0d58d7541b7d6fb96fb1d1d068d48eb0fca97a /src/ngRoute | |
| parent | cd508678cd9baffd2bc0c9e11ae724a7b2ff70bb (diff) | |
| download | angular.js-9565cca15b6d30aefb78bcec411dea4f7b305019.tar.bz2 | |
chore(protractor tests): fix up e2e tests
Diffstat (limited to 'src/ngRoute')
| -rw-r--r-- | src/ngRoute/directive/ngView.js | 6 | ||||
| -rw-r--r-- | src/ngRoute/route.js | 6 |
2 files changed, 6 insertions, 6 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/); }); diff --git a/src/ngRoute/route.js b/src/ngRoute/route.js index 17fea641..3661722f 100644 --- a/src/ngRoute/route.js +++ b/src/ngRoute/route.js @@ -343,17 +343,17 @@ function $RouteProvider(){ } </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/); }); |
