Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit e4b4a97

Browse files
authored
DEV: re-enable and update empty state tests (#380)
1 parent 1d03896 commit e4b4a97

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { visit } from "@ember/test-helpers";
2-
import { skip } from "qunit";
2+
import { test } from "qunit";
33
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
44
import { i18n } from "discourse-i18n";
55

@@ -14,28 +14,26 @@ acceptance(
1414
);
1515
});
1616

17-
/* disabled temporarily for core updates https://github.com/discourse/discourse/pull/33455 */
18-
19-
skip("When looking at own activity", async function (assert) {
17+
test("When looking at own activity", async function (assert) {
2018
await visit(`/u/eviltrout/activity/solved`);
2119

2220
assert
23-
.dom("div.empty-state span.empty-state-title")
21+
.dom(".empty-state .empty-state__title")
2422
.hasText(i18n("solved.no_solved_topics_title"));
2523
assert
26-
.dom("div.empty-state div.empty-state-body")
24+
.dom(".empty-state .empty-state__body")
2725
.hasText(i18n("solved.no_solved_topics_body"));
2826
});
2927

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

33-
assert.dom("div.empty-state span.empty-state-title").hasText(
31+
assert.dom(".empty-state .empty-state__title").hasText(
3432
i18n("solved.no_solved_topics_title_others", {
3533
username: "charlie",
3634
})
3735
);
38-
assert.dom("div.empty-state div.empty-state-body").hasNoText();
36+
assert.dom(".empty-state .empty-state__body").doesNotExist();
3937
});
4038
}
4139
);

0 commit comments

Comments
 (0)