From 1f7e047fe2f958781dd8c20b8535689b2a6d4ce8 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 21 Jan 2013 00:45:30 +0100 Subject: [PATCH] e2e scenario --- test/e2e/scenarios.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/e2e/scenarios.js b/test/e2e/scenarios.js index 26e174a..1b63871 100644 --- a/test/e2e/scenarios.js +++ b/test/e2e/scenarios.js @@ -5,40 +5,40 @@ describe('my app', function() { beforeEach(function() { - browser().navigateTo('../../app/index.html'); + browser().navigateTo('/lang/en/drzb2013.html'); }); - it('should automatically redirect to /view1 when location hash/fragment is empty', function() { - expect(browser().location().url()).toBe("/view1"); + it('should automatically redirect to /registration/ when location hash/fragment is empty', function() { + expect(browser().location().url()).toBe("/registration/"); }); - describe('view1', function() { + describe('registration', function() { beforeEach(function() { - browser().navigateTo('#/view1'); + browser().navigateTo('#/registration'); }); - it('should render view1 when user navigates to /view1', function() { - expect(element('[ng-view] p:first').text()). - toMatch(/partial for view 1/); + it('should render registration when user navigates to /registration', function() { + expect(element('[ng-view]').text()). + toMatch(/Registration/); }); }); - describe('view2', function() { + describe('list', function() { beforeEach(function() { - browser().navigateTo('#/view2'); + browser().navigateTo('#/list'); }); - it('should render view2 when user navigates to /view2', function() { - expect(element('[ng-view] p:first').text()). - toMatch(/partial for view 2/); + it('should render list when user navigates to /list', function() { + expect(element('[ng-view] div:first').text()). + toMatch(/Loading/); }); }); -- 2.20.1