From e0dd39d5fcebcd3098ea303b0adca6be4698af65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Thu, 14 Mar 2019 23:17:20 +0100 Subject: [PATCH] Fix bug: No red border of comment for user --- components/Comment.spec.js | 7 ++++++- components/Comment.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/Comment.spec.js b/components/Comment.spec.js index e76585e72..4c41d6119 100644 --- a/components/Comment.spec.js +++ b/components/Comment.spec.js @@ -62,6 +62,11 @@ describe('Comment.vue', () => { expect(wrapper.text()).not.toMatch('comment content') }) + it('has no "disabled-content" css class', () => { + const wrapper = Wrapper() + expect(wrapper.classes()).not.toContain('disabled-content') + }) + it('translates a placeholder', () => { const wrapper = Wrapper() const calls = mocks.$t.mock.calls @@ -79,7 +84,7 @@ describe('Comment.vue', () => { expect(wrapper.text()).toMatch('comment content') }) - it('visually distinguishable', () => { + it('has a "disabled-content" css class', () => { const wrapper = Wrapper() expect(wrapper.classes()).toContain('disabled-content') }) diff --git a/components/Comment.vue b/components/Comment.vue index ef801acab..26d834d5b 100644 --- a/components/Comment.vue +++ b/components/Comment.vue @@ -1,5 +1,5 @@