| ... | @@ -17,25 +17,25 @@ module QA |
... | @@ -17,25 +17,25 @@ module QA |
|
|
end
|
|
end
|
|
|
|
|
|
|
|
it 'user filters comments and activities in an issue' do
|
|
it 'user filters comments and activities in an issue' do
|
|
|
Page::Project::Issue::Show.perform do |show_page|
|
|
Page::Project::Issue::Show.perform do |show|
|
|
|
my_own_comment = "My own comment"
|
|
my_own_comment = "My own comment"
|
|
|
made_the_issue_confidential = "made the issue confidential"
|
|
made_the_issue_confidential = "made the issue confidential"
|
|
|
|
|
|
|
|
show_page.comment('/confidential', filter: :comments_only)
|
|
show.comment('/confidential', filter: :comments_only)
|
|
|
show_page.comment(my_own_comment, filter: :comments_only)
|
|
show.comment(my_own_comment, filter: :comments_only)
|
|
|
|
|
|
|
|
expect(show_page).not_to have_content(made_the_issue_confidential)
|
|
expect(show).not_to have_content(made_the_issue_confidential)
|
|
|
expect(show_page).to have_content(my_own_comment)
|
|
expect(show).to have_content(my_own_comment)
|
|
|
|
|
|
|
|
show_page.select_all_activities_filter
|
|
show.select_all_activities_filter
|
|
|
|
|
|
|
|
expect(show_page).to have_content(made_the_issue_confidential)
|
|
expect(show).to have_content(made_the_issue_confidential)
|
|
|
expect(show_page).to have_content(my_own_comment)
|
|
expect(show).to have_content(my_own_comment)
|
|
|
|
|
|
|
|
show_page.select_history_only_filter
|
|
show.select_history_only_filter
|
|
|
|
|
|
|
|
expect(show_page).to have_content(made_the_issue_confidential)
|
|
expect(show).to have_content(made_the_issue_confidential)
|
|
|
expect(show_page).not_to have_content(my_own_comment)
|
|
expect(show).not_to have_content(my_own_comment)
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
| ... | |
... | |
| ... | | ... | |