mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 21:59:34 +08:00
DEV: introduces prettier for es6 files
This commit is contained in:
@ -9,10 +9,22 @@ QUnit.test("As an admin", assert => {
|
||||
visit("/groups/discourse/manage/profile");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(find('.group-flair-inputs').length === 1, 'it should display avatar flair inputs');
|
||||
assert.ok(find('.group-form-bio').length === 1, 'it should display group bio input');
|
||||
assert.ok(find('.group-form-name').length === 1, 'it should display group name input');
|
||||
assert.ok(find('.group-form-full-name').length === 1, 'it should display group full name input');
|
||||
assert.ok(
|
||||
find(".group-flair-inputs").length === 1,
|
||||
"it should display avatar flair inputs"
|
||||
);
|
||||
assert.ok(
|
||||
find(".group-form-bio").length === 1,
|
||||
"it should display group bio input"
|
||||
);
|
||||
assert.ok(
|
||||
find(".group-form-name").length === 1,
|
||||
"it should display group name input"
|
||||
);
|
||||
assert.ok(
|
||||
find(".group-form-full-name").length === 1,
|
||||
"it should display group full name input"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@ -25,8 +37,9 @@ QUnit.test("As a group owner", assert => {
|
||||
|
||||
andThen(() => {
|
||||
assert.equal(
|
||||
find('.group-form-name').length, 0,
|
||||
'it should not display group name input'
|
||||
find(".group-form-name").length,
|
||||
0,
|
||||
"it should not display group name input"
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -35,6 +48,9 @@ QUnit.test("As an anonymous user", assert => {
|
||||
visit("/groups/discourse/manage/profile");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(count('.group-members tr') > 0, "it should redirect to members page for an anonymous user");
|
||||
assert.ok(
|
||||
count(".group-members tr") > 0,
|
||||
"it should redirect to members page for an anonymous user"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user