1
0
mirror of synced 2026-08-05 17:56:58 +00:00

Merge branch 'main' into dev/post-quoted-content-component

This commit is contained in:
Sérgio Saquetim
2025-07-21 23:25:41 -03:00
14 changed files with 441 additions and 68 deletions
@@ -9,8 +9,8 @@ acceptance(
needs.user();
needs.pretender((server, helper) => {
server.get("/user_actions.json", () =>
helper.response({ user_actions: [] })
server.get("/solution/by_user.json", () =>
helper.response({ user_solved_posts: [] })
);
});
@@ -18,22 +18,22 @@ acceptance(
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"));
});
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();
});
}
);