mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:32:46 +08:00
Fix the build.
This commit is contained in:
parent
8bc5da57b0
commit
baa383b7f1
|
@ -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}}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user