Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-03-28 09:42:12 +08:00
parent 8bc5da57b0
commit baa383b7f1
4 changed files with 8 additions and 8 deletions

View File

@ -181,7 +181,7 @@
<div class='control-group buttons'>
{{d-button action="save"
disabled=disableSave
class='btn btn-primary'
class='btn btn-primary group-form-save'
label=saveLabel}}
{{yield}}

View File

@ -12,7 +12,7 @@
{{d-button action="resetPassword"
label="forgot_password.reset"
disabled=submitDisabled
class="btn-primary"}}
class="btn-primary forgot-password-reset"}}
{{else}}
{{d-button class="btn-large btn-primary"
label="forgot_password.button_ok"

View File

@ -25,14 +25,14 @@ QUnit.test("requesting password reset", assert => {
andThen(() => {
assert.equal(
find('button[title="Reset Password"]').attr("disabled"),
find('.forgot-password-reset').attr("disabled"),
"disabled",
'it should disable the button until the field is filled'
);
});
fillIn("#username-or-email", 'someuser');
click('button[title="Reset Password"]');
click('.forgot-password-reset');
andThen(() => {
assert.equal(
@ -43,7 +43,7 @@ QUnit.test("requesting password reset", assert => {
});
fillIn("#username-or-email", 'someuser@gmail.com');
click('button[title="Reset Password"]');
click('.forgot-password-reset');
andThen(() => {
assert.equal(
@ -59,7 +59,7 @@ QUnit.test("requesting password reset", assert => {
userFound = true;
});
click('button[title="Reset Password"]');
click('.forgot-password-reset');
andThen(() => {
assert.notOk(exists(find(".alert-error")), 'it should remove the flash error when succeeding');
@ -75,7 +75,7 @@ QUnit.test("requesting password reset", assert => {
click("header .login-button");
click('#forgot-password-link');
fillIn("#username-or-email", 'someuser@gmail.com');
click('button[title="Reset Password"]');
click('.forgot-password-reset');
andThen(() => {
assert.equal(

View File

@ -29,7 +29,7 @@ QUnit.test("Creating a new group", assert => {
);
assert.ok(
find("button[title='Create']:disabled").length === 1,
find(".group-form-save:disabled").length === 1,
'it should disable the save button'
);
});