icons deprecations fixes (#6920)
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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"
|
||||
);
|
||||
|
||||
|
||||
@@ -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:");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user