test adding work when changing type
[angular-drzb] / test / e2e / scenarios.js
index 4bd1abf..14bbea2 100644 (file)
@@ -84,6 +84,14 @@ 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);
+       });
+
   });