Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CeibalEncuestaWeb/webapp/test/e2e/scenarios.js42
1 files changed, 6 insertions, 36 deletions
diff --git a/CeibalEncuestaWeb/webapp/test/e2e/scenarios.js b/CeibalEncuestaWeb/webapp/test/e2e/scenarios.js
index 26e174a..823960c 100644
--- a/CeibalEncuestaWeb/webapp/test/e2e/scenarios.js
+++ b/CeibalEncuestaWeb/webapp/test/e2e/scenarios.js
@@ -1,45 +1,15 @@
'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() {
+describe('CeibalEncuesta', function() {
beforeEach(function() {
- browser().navigateTo('#/view1');
+ browser().navigateTo("/app/hello.html");
});
-
- it('should render view1 when user navigates to /view1', function() {
- expect(element('[ng-view] p:first').text()).
- toMatch(/partial for view 1/);
+ it('should be hello world!', function() {
+ expect(element('html').text()).
+ toMatch("hello world!");
});
- });
-
-
- 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/);
- });
-
- });
});
+