diff --git a/js/src/components/Comment/CommentTree.vue b/js/src/components/Comment/CommentTree.vue index 592e23cd..10c5bbc4 100644 --- a/js/src/components/Comment/CommentTree.vue +++ b/js/src/components/Comment/CommentTree.vue @@ -39,10 +39,13 @@ {{ $t("The organiser has chosen to close comments.") }} - - - {{ $t("Loading…") }} - + + {{ $t("Loading comments…") }} + + { expect(wrapper.findComponent({ name: "b-notification" }).text()).toBe( "The organiser has chosen to close comments." ); - expect(wrapper.find(".loading").text()).toBe("Loading…"); + expect(wrapper.find(".loading").text()).toBe("Loading comments…"); expect(wrapper.html()).toMatchSnapshot(); }); diff --git a/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap b/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap index 4ea79739..48a66f29 100644 --- a/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap +++ b/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap @@ -3,12 +3,9 @@ exports[`CommentTree renders a comment tree 1`] = ` The organiser has chosen to close comments. - - - Loading… - - - + + Loading comments… + `; @@ -16,7 +13,6 @@ exports[`CommentTree renders a comment tree 2`] = ` The organiser has chosen to close comments. -
- {{ $t("Loading…") }} -
+ {{ $t("Loading comments…") }} +
- Loading… -
+ Loading comments… +