Fix several FontAwesome 5 issues

add missing icons, update SvgSprite methods (to fix ruby 2.4 issues), update whisper icon in composer, fix alignment issues
This commit is contained in:
Penar Musaraj
2018-11-07 22:20:53 -05:00
parent 3365753bd0
commit 09dc922b3b
15 changed files with 49 additions and 52 deletions

View File

@ -88,11 +88,7 @@ QUnit.test("replying to post - toggle_whisper", async assert => {
await composerActions.expand();
await composerActions.selectRowByValue("toggle_whisper");
assert.ok(
find(".composer-fields .whisper")
.text()
.indexOf(I18n.t("composer.whisper")) > 0
);
assert.ok(find(".composer-fields .whisper .d-icon-eye-slash").length === 1);
});
QUnit.test("replying to post - reply_as_new_topic", async assert => {

View File

@ -375,9 +375,7 @@ QUnit.test("Composer can toggle whispers", async assert => {
);
assert.ok(
find(".composer-fields .whisper")
.text()
.indexOf(I18n.t("composer.whisper")) > 0,
find(".composer-fields .whisper .d-icon-eye-slash").length === 1,
"it sets the post type to whisper"
);
@ -387,9 +385,7 @@ QUnit.test("Composer can toggle whispers", async assert => {
);
assert.ok(
find(".composer-fields .whisper")
.text()
.indexOf(I18n.t("composer.whisper")) <= 0,
find(".composer-fields .whisper .d-icon-eye-slash").length === 0,
"it removes the whisper mode"
);
});
@ -406,9 +402,7 @@ QUnit.test(
);
assert.ok(
find(".composer-fields .whisper")
.text()
.indexOf(I18n.t("composer.whisper")) > 0,
find(".composer-fields .whisper .d-icon-eye-slash").length === 1,
"it sets the post type to whisper"
);
@ -417,9 +411,7 @@ QUnit.test(
await click("#create-topic");
assert.ok(
find(".composer-fields .whisper")
.text()
.indexOf(I18n.t("composer.whisper")) === -1,
find(".composer-fields .whisper .d-icon-eye-slash").length === 0,
"it should reset the state of the composer's model"
);