Missing client files, excluding node_modules

This commit is contained in:
Per Ploug Krogslund
2013-06-10 10:44:40 -02:00
parent 6b6ece01f6
commit 47f1dcf4e5
1121 changed files with 190073 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
describe('admin edit user', function() {
beforeEach(function() {
browser().navigateTo('/admin/users/new');
input('user.email').enter('admin@abc.com');
input('user.password').enter('changeme');
element('button.login').click();
});
it('enables the save button when the user info is filled in correctly', function() {
expect(element('button.save:disabled').count()).toBe(1);
input('user.email').enter('test@app.com');
input('user.lastName').enter('Test');
input('user.firstName').enter('App');
input('user.password').enter('t');
input('password').enter('t');
element('#password').query(function(elements, done) {
expect(element('#passwordRepeat').text()).toContain(elements.text());
done();
});
expect(element('button.save:disabled').count()).toBe(0);
});
});

View File

@@ -0,0 +1,10 @@
describe('my app', function() {
beforeEach(function() {
browser().navigateTo('/');
});
it('should be publicly accessible and default route to be /projectsinfo', function() {
expect(browser().location().path()).toBe("/projectsinfo");
});
});