upgrade to angular 0.9.10 and update the code with angular API changes
[angular-drzb] / test / e2e / scenarios.js
1 describe('my app', function() {
2
3   beforeEach(function() {
4     browser().navigateTo('../../app/index.html');
5   });
6
7
8   it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
9     expect(browser().location().hash()).toBe("/view1");
10   });
11
12
13   describe('view1', function() {
14
15     beforeEach(function() {
16       browser().navigateTo('#/view1');
17     });
18
19
20     it('should render view1 when user navigates to /view1', function() {
21       expect(element('ng\\:view p:first').text()).
22         toMatch(/partial for view 1/)
23     });
24
25   });
26
27
28   describe('view2', function() {
29
30     beforeEach(function() {
31       browser().navigateTo('#/view2');
32     });
33
34
35     it('should render view1 when user navigates to /view2', function() {
36       expect(element('ng\\:view p:first').text()).
37         toMatch(/partial for view 2/)
38     });
39
40   });
41 });