mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: remap all core icons for fontawesome 6 upgrade (#28715)
Followup to 7d8974d02f
Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:
@@ -8,14 +8,14 @@ module("Discourse Chat | Component | chat-composer-dropdown", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test("buttons", async function (assert) {
|
||||
this.set("buttons", [{ id: "foo", icon: "times", action: () => {} }]);
|
||||
this.set("buttons", [{ id: "foo", icon: "xmark", action: () => {} }]);
|
||||
|
||||
await render(hbs`<ChatComposerDropdown @buttons={{this.buttons}} />`);
|
||||
await click(".chat-composer-dropdown__trigger-btn");
|
||||
|
||||
assert.true(exists(".chat-composer-dropdown__item.foo"));
|
||||
assert.true(
|
||||
exists(".chat-composer-dropdown__action-btn.foo .d-icon-times")
|
||||
exists(".chat-composer-dropdown__action-btn.foo .d-icon-xmark")
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -31,7 +31,7 @@ module(
|
||||
hbs`<ChatComposerMessageDetails @message={{this.message}} />`
|
||||
);
|
||||
|
||||
assert.dom(".chat-composer-message-details .d-icon-pencil-alt").exists();
|
||||
assert.dom(".chat-composer-message-details .d-icon-pencil").exists();
|
||||
});
|
||||
|
||||
test("replying to a message has the reply icon", async function (assert) {
|
||||
|
||||
@@ -68,7 +68,7 @@ module("Discourse Chat | Component | chat-composer-upload", function (hooks) {
|
||||
hbs`<ChatComposerUpload @isDone={{true}} @upload={{this.upload}} />`
|
||||
);
|
||||
|
||||
assert.true(exists(".d-icon-file-alt"));
|
||||
assert.true(exists(".d-icon-file-lines"));
|
||||
assert.strictEqual(query(".file-name").innerText.trim(), "some file.pdf");
|
||||
assert.strictEqual(query(".extension-pill").innerText.trim(), "pdf");
|
||||
});
|
||||
|
||||
@@ -40,7 +40,7 @@ module("Discourse Chat | Component | chat-header-icon", function (hooks) {
|
||||
.hasAttribute("title", I18n.t("sidebar.panels.forum.label"))
|
||||
.hasAttribute("href", "/latest");
|
||||
|
||||
assert.dom(".d-icon-random").exists();
|
||||
assert.dom(".d-icon-shuffle").exists();
|
||||
});
|
||||
|
||||
test("mobile", async function (assert) {
|
||||
@@ -71,7 +71,7 @@ module("Discourse Chat | Component | chat-header-icon", function (hooks) {
|
||||
.dom(".icon.btn-flat")
|
||||
.hasAttribute("title", I18n.t("sidebar.panels.forum.label"))
|
||||
.hasAttribute("href", "/latest");
|
||||
assert.dom(".d-icon-random").exists();
|
||||
assert.dom(".d-icon-shuffle").exists();
|
||||
assert.dom(".chat-channel-unread-indicator__number").doesNotExist();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user