Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions test/javascripts/acceptance/user-activity-solved-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { visit } from "@ember/test-helpers";
import { skip } from "qunit";
import { test } from "qunit";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
import { i18n } from "discourse-i18n";

Expand All @@ -14,28 +14,26 @@ acceptance(
);
});

/* disabled temporarily for core updates https://github.com/discourse/discourse/pull/33455 */

skip("When looking at own activity", async function (assert) {
test("When looking at own activity", async function (assert) {
await visit(`/u/eviltrout/activity/solved`);

assert
.dom("div.empty-state span.empty-state-title")
.dom(".empty-state .empty-state__title")
.hasText(i18n("solved.no_solved_topics_title"));
assert
.dom("div.empty-state div.empty-state-body")
.dom(".empty-state .empty-state__body")
.hasText(i18n("solved.no_solved_topics_body"));
});

skip("When looking at another user's activity", async function (assert) {
test("When looking at another user's activity", async function (assert) {
await visit(`/u/charlie/activity/solved`);

assert.dom("div.empty-state span.empty-state-title").hasText(
assert.dom(".empty-state .empty-state__title").hasText(
i18n("solved.no_solved_topics_title_others", {
username: "charlie",
})
);
assert.dom("div.empty-state div.empty-state-body").hasNoText();
assert.dom(".empty-state .empty-state__body").doesNotExist();
});
}
);