diff options
Diffstat (limited to 'src/ngRoute/directive/ngView.js')
| -rw-r--r-- | src/ngRoute/directive/ngView.js | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index 41ed9f31..a88d205d 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -151,16 +151,17 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);          }        </file> -      <file name="scenario.js"> +      <file name="protractorTest.js">          it('should load and compile correct template', function() { -          element('a:contains("Moby: Ch1")').click(); -          var content = element('.doc-example-live [ng-view]').text(); +          element(by.linkText('Moby: Ch1')).click(); +          var content = element(by.css('.doc-example-live [ng-view]')).getText();            expect(content).toMatch(/controller\: ChapterCntl/);            expect(content).toMatch(/Book Id\: Moby/);            expect(content).toMatch(/Chapter Id\: 1/); -          element('a:contains("Scarlet")').click(); -          content = element('.doc-example-live [ng-view]').text(); +          element(by.partialLinkText('Scarlet')).click(); + +          content = element(by.css('.doc-example-live [ng-view]')).getText();            expect(content).toMatch(/controller\: BookCntl/);            expect(content).toMatch(/Book Id\: Scarlet/);          }); | 
