Skip to content

Commit

Permalink
Consider content moderation beta in notification filter component spec
Browse files Browse the repository at this point in the history
  • Loading branch information
krauselukas authored and danidoni committed Sep 22, 2023
1 parent 7931785 commit 3bf13b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api/spec/components/notification_filter_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
it "doesn't display group filters" do
expect(rendered_content).not_to have_css('h5', text: 'Groups')
end

it "doesn't display the Reports filter" do
expect(rendered_content).not_to have_link('Reports')
end
end

context 'with projects and groups notifications' do
Expand Down Expand Up @@ -54,4 +58,14 @@
expect(rendered_content).to have_link(group.title)
end
end

context 'when show reports is true' do
before do
render_inline(described_class.new(selected_filter: { type: 'unread' }, show_reports: true))
end

it 'displays the Reports filter' do
expect(rendered_content).to have_link('Reports')
end
end
end

0 comments on commit 3bf13b6

Please sign in to comment.