Renormalize

This commit is contained in:
Stephan
2018-06-29 19:52:40 +02:00
parent c1f3de7e5c
commit 7a615133ff
1616 changed files with 273322 additions and 273322 deletions

View File

@@ -1,23 +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);
});
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

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