Merge branch 'main' into dev/post-quoted-content-component
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user