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:
Kris
2024-09-13 11:50:52 -04:00
committed by GitHub
parent 9afc9a6e28
commit a914d3230b
410 changed files with 840 additions and 831 deletions

View File

@@ -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")
);
});
});

View File

@@ -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) {

View File

@@ -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");
});

View File

@@ -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();
});