@@ -185,7 +185,7 @@ We also added a placeholder template for the phone details view:
__`app/partials/phone-detail.html`:__
```html
-TBD: detail view for {{phoneId}}
+TBD: detail view for {{phoneId}}
```
Note how we are using the `phoneId` expression which will be defined in the `PhoneDetailCtrl` controller.
@@ -304,10 +304,17 @@ to various URLs and verify that the correct view was rendered.
```js
...
- it('should redirect index.html to index.html#/phones', function() {
- browser().navigateTo('app/index.html');
- expect(browser().location().url()).toBe('/phones');
+ it('should redirect index.html to index.html#/phones', function() {
+ browser.get('app/index.html');
+ browser.getLocationAbsUrl().then(function(url) {
+ expect(url.split('#')[1]).toBe('/phones');
+ });
});
+
+ describe('Phone list view', function() {
+ beforeEach(function() {
+ browser.get('app/index.html#/phones');
+ });
...
describe('Phone detail view', function() {