Commit fedc6de3 authored by Ramya Authappan's avatar Ramya Authappan Committed by Sanad Liaquat

Fix for the filter spec failure

parent 8883cfca
...@@ -36,6 +36,11 @@ module QA ...@@ -36,6 +36,11 @@ module QA
end end
def select_comments_only_filter def select_comments_only_filter
click_element :discussion_filter
all_elements(:filter_options)[1].click
end
def select_history_only_filter
click_element :discussion_filter click_element :discussion_filter
all_elements(:filter_options).last.click all_elements(:filter_options).last.click
end end
......
...@@ -31,6 +31,7 @@ module QA ...@@ -31,6 +31,7 @@ module QA
create_issue create_issue
Page::Project::Issue::Show.perform do |show| Page::Project::Issue::Show.perform do |show|
show.select_all_activities_filter
show.comment('See attached banana for scale', attachment: file_to_attach) show.comment('See attached banana for scale', attachment: file_to_attach)
show.refresh show.refresh
......
...@@ -27,6 +27,11 @@ module QA ...@@ -27,6 +27,11 @@ module QA
expect(show_page).to have_content("made the issue confidential") expect(show_page).to have_content("made the issue confidential")
expect(show_page).to have_content("My own comment") expect(show_page).to have_content("My own comment")
show_page.select_history_only_filter
expect(show_page).to have_content("made the issue confidential")
expect(show_page).not_to have_content("My own comment")
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment