Sha256: b0164780fa937789155b4afa0f10951cdc9384c49ddff28050b8d75ba819287d
Contents?: true
Size: 938 Bytes
Versions: 21
Compression:
Stored size: 938 Bytes
Contents
'use strict'; /* http://docs.angularjs.org/guide/dev_guide.e2e-testing */ describe('my app', function() { beforeEach(function() { browser().navigateTo('../../app/index.html'); }); it('should automatically redirect to /view1 when location hash/fragment is empty', function() { expect(browser().location().url()).toBe("/view1"); }); describe('view1', function() { beforeEach(function() { browser().navigateTo('#/view1'); }); it('should render view1 when user navigates to /view1', function() { expect(element('[ng-view] p:first').text()). toMatch(/partial for view 1/); }); }); describe('view2', function() { beforeEach(function() { browser().navigateTo('#/view2'); }); it('should render view2 when user navigates to /view2', function() { expect(element('[ng-view] p:first').text()). toMatch(/partial for view 2/); }); }); });
Version data entries
21 entries across 21 versions & 2 rubygems