icons deprecations fixes (#6920)

This commit is contained in:
Joffrey JAFFEUX
2019-01-22 12:02:02 +01:00
committed by GitHub
parent ea0e188c8f
commit 80d42b4ea2
78 changed files with 151 additions and 145 deletions

View File

@ -89,7 +89,9 @@ QUnit.test("replying to post - toggle_whisper", async assert => {
await composerActions.expand();
await composerActions.selectRowByValue("toggle_whisper");
assert.ok(find(".composer-fields .whisper .d-icon-eye-slash").length === 1);
assert.ok(
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 1
);
});
QUnit.test("replying to post - reply_as_new_topic", async assert => {
@ -100,7 +102,7 @@ QUnit.test("replying to post - reply_as_new_topic", async assert => {
await visit("/t/internationalization-localization/280");
await click("#topic-title .d-icon-pencil");
await click("#topic-title .d-icon-pencil-alt");
await categoryChooser.expand();
await categoryChooser.selectRowByValue(4);
await click("#topic-title .submit-edit");

View File

@ -384,7 +384,7 @@ QUnit.test("Composer can toggle whispers", async assert => {
await menu.selectRowByValue("toggleWhisper");
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 1,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 1,
"it sets the post type to whisper"
);
@ -392,7 +392,7 @@ QUnit.test("Composer can toggle whispers", async assert => {
await menu.selectRowByValue("toggleWhisper");
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 0,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 0,
"it removes the whisper mode"
);
@ -424,7 +424,7 @@ QUnit.test("Switching composer whisper state", async assert => {
await click("#topic-footer-buttons .btn.create");
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 0,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 0,
"doesn’t set topic reply as whisper"
);
@ -432,7 +432,7 @@ QUnit.test("Switching composer whisper state", async assert => {
assert.ok(find(".topic-post:last").hasClass("whisper"));
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 1,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 1,
"sets post reply as a whisper"
);
@ -440,7 +440,7 @@ QUnit.test("Switching composer whisper state", async assert => {
assert.notOk(find(".topic-post:nth-last-child(2)").hasClass("whisper"));
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 0,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 0,
"doesn’t set post reply as a whisper"
);
});
@ -499,7 +499,7 @@ QUnit.test(
);
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 1,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 1,
"it sets the post type to whisper"
);
@ -508,7 +508,7 @@ QUnit.test(
await click("#create-topic");
assert.ok(
find(".composer-fields .whisper .d-icon-eye-slash").length === 0,
find(".composer-fields .whisper .d-icon-far-eye-slash").length === 0,
"it should reset the state of the composer's model"
);

View File

@ -48,7 +48,7 @@ QUnit.test("Share Popup", async assert => {
QUnit.test("Showing and hiding the edit controls", async assert => {
await visit("/t/internationalization-localization/280");
await click("#topic-title .d-icon-pencil");
await click("#topic-title .d-icon-pencil-alt");
assert.ok(exists("#edit-title"), "it shows the editing controls");
assert.ok(
@ -66,7 +66,7 @@ QUnit.test("Updating the topic title and category", async assert => {
await visit("/t/internationalization-localization/280");
await click("#topic-title .d-icon-pencil");
await click("#topic-title .d-icon-pencil-alt");
await fillIn("#edit-title", "this is the new title");
await categoryChooser.expand();
await categoryChooser.selectRowByValue(4);
@ -185,7 +185,7 @@ QUnit.test("Visit topic routes", async assert => {
QUnit.test("Updating the topic title with emojis", async assert => {
await visit("/t/internationalization-localization/280");
await click("#topic-title .d-icon-pencil");
await click("#topic-title .d-icon-pencil-alt");
await fillIn("#edit-title", "emojis title :bike: :blonde_woman:t6:");

View File

@ -6,13 +6,13 @@ componentTest("with image", {
test(assert) {
assert.equal(
this.$(".d-icon-picture-o").length,
this.$(".d-icon-far-image").length,
1,
"it displays the upload icon"
);
assert.equal(
this.$(".d-icon-trash-o").length,
this.$(".d-icon-far-trash-alt").length,
1,
"it displays the trash icon"
);
@ -24,13 +24,13 @@ componentTest("without image", {
test(assert) {
assert.equal(
this.$(".d-icon-picture-o").length,
this.$(".d-icon-far-image").length,
1,
"it displays the upload icon"
);
assert.equal(
this.$(".d-icon-trash-o").length,
this.$(".d-icon-far-trash-alt").length,
0,
"it does not display trash icon"
);

View File

@ -80,7 +80,7 @@ widgetTest("post deleted", {
},
test(assert) {
assert.ok(
this.$(".post-action .d-icon-trash-o").length === 1,
this.$(".post-action .d-icon-far-trash-alt").length === 1,
"it has the deleted icon"
);
assert.ok(

View File

@ -39,7 +39,7 @@ widgetTest("extra classes and glyphs", {
assert.ok(this.$("span.staff").length);
assert.ok(this.$("span.admin").length);
assert.ok(this.$("span.moderator").length);
assert.ok(this.$(".d-icon-shield").length);
assert.ok(this.$(".d-icon-shield-alt").length);
assert.ok(this.$("span.new-user").length);
assert.ok(this.$("span.fish").length);
}