Commit c6dda2f1 authored by Walmyr Lima's avatar Walmyr Lima

Remove more duplicated strings from tests

parent 783dfe02
......@@ -18,21 +18,24 @@ module QA
expect(page).to have_content(issue_title)
Page::Project::Issue::Show.perform do |show_page|
my_own_comment = "My own comment"
made_the_issue_confidential = "made the issue confidential"
show_page.comment('/confidential', filter: :comments_only)
show_page.comment('My own comment', filter: :comments_only)
show_page.comment(my_own_comment, filter: :comments_only)
expect(show_page).not_to have_content("made the issue confidential")
expect(show_page).to have_content("My own comment")
expect(show_page).not_to have_content(made_the_issue_confidential)
expect(show_page).to have_content(my_own_comment)
show_page.select_all_activities_filter
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(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")
expect(show_page).to have_content(made_the_issue_confidential)
expect(show_page).not_to have_content(my_own_comment)
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