Skip to content

Commit 2f3ee4f

Browse files
committed
run e2e tests for other builds
1 parent 25d9187 commit 2f3ee4f

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

app/templates/client/app/account(auth)/login/login(jade).jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ div(ng-include='"components/navbar/navbar.html"')
2020
form.form(name='form', ng-submit='login(form)', novalidate='')
2121
.form-group
2222
label Email
23-
input.form-control(type='text', name='email', ng-model='user.email')
23+
input.form-control(type='email', name='email', ng-model='user.email')
2424
.form-group
2525
label Password
2626
input.form-control(type='password', name='password', ng-model='user.password')

test/test-file-creation.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,16 @@ describe('angular-fullstack generator', function () {
408408
assertOnlyFiles(genFiles(testOptions), done);
409409
});
410410
});
411+
412+
it('should run e2e tests successfully', function(done) {
413+
this.timeout(240000); // 4 minutes
414+
gen.run({}, function () {
415+
exec('grunt test:e2e', function (error, stdout, stderr) {
416+
expect(stdout, 'Client tests failed \n' + stdout).to.contain('0 failures');
417+
done();
418+
});
419+
});
420+
});
411421
});
412422

413423
describe('with other preprocessors and no server options', function() {
@@ -461,6 +471,16 @@ describe('angular-fullstack generator', function () {
461471
assertOnlyFiles(genFiles(testOptions), done);
462472
});
463473
});
474+
475+
it('should run e2e tests successfully', function(done) {
476+
this.timeout(240000); // 4 minutes
477+
gen.run({}, function () {
478+
exec('grunt test:e2e', function (error, stdout, stderr) {
479+
expect(stdout, 'Client tests failed \n' + stdout).to.contain('0 failures');
480+
done();
481+
});
482+
});
483+
});
464484
});
465485

466486
describe('with no preprocessors and no server options', function() {
@@ -506,6 +526,16 @@ describe('angular-fullstack generator', function () {
506526
assertOnlyFiles(genFiles(testOptions), done);
507527
});
508528
});
529+
530+
it('should run e2e tests successfully', function(done) {
531+
this.timeout(240000); // 4 minutes
532+
gen.run({}, function () {
533+
exec('grunt test:e2e', function (error, stdout, stderr) {
534+
expect(stdout, 'Client tests failed \n' + stdout).to.contain('0 failures');
535+
done();
536+
});
537+
});
538+
});
509539
});
510540
});
511541
});

0 commit comments

Comments
 (0)