From 75847b55a1559dea201177c515e67015efcd1c9c Mon Sep 17 00:00:00 2001 From: Ramya Authappan Date: Tue, 30 Oct 2018 07:48:49 +0000 Subject: [PATCH] Adding tests for filtering activities/comments in issues --- .../notes/components/discussion_filter.vue | 7 ++-- qa/qa/page/project/issue/show.rb | 29 ++++++++++------ .../issue/filter_issue_comments_spec.rb | 34 +++++++++++++++++++ 3 files changed, 55 insertions(+), 15 deletions(-) create mode 100644 qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb diff --git a/app/assets/javascripts/notes/components/discussion_filter.vue b/app/assets/javascripts/notes/components/discussion_filter.vue index 27972682ca1..6e8f43048d1 100644 --- a/app/assets/javascripts/notes/components/discussion_filter.vue +++ b/app/assets/javascripts/notes/components/discussion_filter.vue @@ -22,9 +22,7 @@ export default { return { currentValue: this.defaultValue }; }, computed: { - ...mapGetters([ - 'getNotesDataByProp', - ]), + ...mapGetters(['getNotesDataByProp']), currentFilter() { if (!this.currentValue) return this.filters[0]; return this.filters.find(filter => filter.value === this.currentValue); @@ -51,7 +49,7 @@ export default {