Fix for the filter spec failure

This commit is contained in:
Ramya Authappan 2018-11-08 05:55:18 +00:00 committed by Sanad Liaquat
parent 8883cfcaa5
commit fedc6de373
3 changed files with 11 additions and 0 deletions

View file

@ -36,6 +36,11 @@ module QA
end
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
all_elements(:filter_options).last.click
end

View file

@ -31,6 +31,7 @@ module QA
create_issue
Page::Project::Issue::Show.perform do |show|
show.select_all_activities_filter
show.comment('See attached banana for scale', attachment: file_to_attach)
show.refresh

View file

@ -27,6 +27,11 @@ module QA
expect(show_page).to have_content("made the issue confidential")
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