describe('myApp', function() {
beforeEach(function() {
- browser().navigateTo('/lang/en-dev/drzb2013.html?test=mock');
+ browser().navigateTo('/lang/hr-dev/drzb2013.html?test=mock');
});
expect(element('p.well').text()).toBeTruthy();
});
- it('invalid form', function() {
- expect(binding('RegistrationForm.$valid')).toEqual('false');
+ it('RegistrationForm.$valid', function() {
+ expect(binding('RegistrationForm.$valid')).toBe("false"); // FIXME toBeFalsy() doesn't work
});
- it('save draft button', function() {
- expect(input('user.registration_type').select('symposium')).toBeDefined;
- expect(binding('RegistrationForm.$valid')).toEqual('false');
- expect(element('input#save-draft')).toBeDefined;
+ it('RegistrationForm.$error', function() {
+ expect(binding('RegistrationForm.$error')).toBeDefined();
+ });
+
+ xit('save draft button', function() {
+ input('user.registration_type').select('symposium').click();
+ expect(binding('user.registration_type')).toBe("symposium");
+ expect(element('input#save-draft')).toBeDefined();
});
it('symposium has 4 works by default', function() {
element('#edit-registration').click();
expect(browser().location().url()).toMatch(/registration/);
registration_url = browser().location().url();
+ console.log('registration_url', registration_url);
});
it('accomp finish registration', function() {