From 7160006eed7bb8676f70c29d13fc4c13b15f8d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Thu, 14 Mar 2019 02:07:47 +0100 Subject: [PATCH] Show red border for moderators --- components/Comment.spec.js | 6 ++++++ components/Comment.vue | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/components/Comment.spec.js b/components/Comment.spec.js index 2efdc800b..e76585e72 100644 --- a/components/Comment.spec.js +++ b/components/Comment.spec.js @@ -42,6 +42,7 @@ describe('Comment.vue', () => { describe('given a comment', () => { beforeEach(() => { propsData.comment = { + id: '2', contentExcerpt: 'Hello I am a comment content' } }) @@ -77,6 +78,11 @@ describe('Comment.vue', () => { const wrapper = Wrapper() expect(wrapper.text()).toMatch('comment content') }) + + it('visually distinguishable', () => { + const wrapper = Wrapper() + expect(wrapper.classes()).toContain('disabled-content') + }) }) }) }) diff --git a/components/Comment.vue b/components/Comment.vue index 799c32e64..ef801acab 100644 --- a/components/Comment.vue +++ b/components/Comment.vue @@ -1,6 +1,6 @@