Commit 95024dea authored by Walmyr Lima's avatar Walmyr Lima

Remove duplicated strings from test

parent 7ec96702
......@@ -18,20 +18,24 @@ module QA
expect(page).to have_content(issue_title)
Page::Project::Issue::Show.perform do |show_page|
my_first_discussion = "My first discussion"
my_first_reply = "My First Reply"
one_reply = "1 reply"
show_page.select_all_activities_filter
show_page.start_discussion("My first discussion")
expect(show_page).to have_content("My first discussion")
show_page.start_discussion(my_first_discussion)
expect(show_page).to have_content(my_first_discussion)
show_page.reply_to_discussion("My First Reply")
expect(show_page).to have_content("My First Reply")
show_page.reply_to_discussion(my_first_reply)
expect(show_page).to have_content(my_first_reply)
show_page.collapse_replies
expect(show_page).to have_content("1 reply")
expect(show_page).not_to have_content("My First Reply")
expect(show_page).to have_content(one_reply)
expect(show_page).not_to have_content(my_first_reply)
show_page.expand_replies
expect(show_page).to have_content("My First Reply")
expect(show_page).not_to have_content("1 reply")
expect(show_page).to have_content(my_first_reply)
expect(show_page).not_to have_content(one_reply)
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