From 9565cca15b6d30aefb78bcec411dea4f7b305019 Mon Sep 17 00:00:00 2001 From: Julie Date: Wed, 12 Feb 2014 15:07:08 -0800 Subject: chore(protractor tests): fix up e2e tests --- src/ngRoute/directive/ngView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ngRoute/directive/ngView.js') 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); } - + 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/); }); -- cgit v1.2.3