X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=test%2Fe2e%2Fscenarios.js;h=806ca862405123e7b422ca30a85903403428bbab;hb=29222b0f70a8f9b95c9d352dfac5c42e1ac20bde;hp=4bd1abfd9b39e9538db9ac31e2e211275d2b737a;hpb=5ad41271623c79a9ecdd9076c632a3a9129decb3;p=angular-drzb diff --git a/test/e2e/scenarios.js b/test/e2e/scenarios.js index 4bd1abf..806ca86 100644 --- a/test/e2e/scenarios.js +++ b/test/e2e/scenarios.js @@ -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); + }); + }); @@ -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/); + }); + + }); });