run all e2e scenarios
[angular-drzb] / test / e2e / scenarios.js
index 52fb9b6..806ca86 100644 (file)
@@ -84,10 +84,18 @@ describe('myApp', function() {
                expect(browser().location().url()).toMatch(/confirmation/);
        });
 
+       it('accomp change to lecture', function() {
+               browser().navigateTo( '#' + registration_url.value );
+               expect(browser().location().url()).toBe(registration_url.value);
+               input('user.registration_type').select('lecture');
+               var work_persons = using('fieldset#has_work').repeater('div.persons');
+               expect(work_persons.count()).toBe(1);
+       });
+
   });
 
 
-  ddescribe('list', function() {
+  describe('list', function() {
 
     beforeEach(function() {
       browser().navigateTo('#/list');
@@ -100,4 +108,18 @@ describe('myApp', function() {
     });
 
   });
+
+  describe('authors', function() {
+
+    beforeEach(function() {
+      browser().navigateTo('#/authors');
+    });
+
+
+    it('loading', function() {
+      expect(element('[ng-view] div:first').text()).
+        toMatch(/Loading/);
+    });
+
+  });
 });