Commit 0a959f46 authored by Walmyr Lima's avatar Walmyr Lima

Shorten test code

parent c618698c
...@@ -8,11 +8,9 @@ module QA ...@@ -8,11 +8,9 @@ module QA
before do before do
Flow::Login.sign_in Flow::Login.sign_in
issue = Resource::Issue.fabricate_via_api! do |issue| Resource::Issue.fabricate_via_api! do |issue|
issue.title = 'issue title' issue.title = 'issue title'
end end.visit!
issue.visit!
Page::Project::Issue::Show.perform do |show| Page::Project::Issue::Show.perform do |show|
show.select_all_activities_filter show.select_all_activities_filter
......
...@@ -6,10 +6,9 @@ module QA ...@@ -6,10 +6,9 @@ module QA
before do before do
Flow::Login.sign_in Flow::Login.sign_in
issue = Resource::Issue.fabricate_via_api! do |issue| Resource::Issue.fabricate_via_api! do |issue|
issue.title = 'issue title' issue.title = 'issue title'
end end.visit!
issue.visit!
end end
it 'user comments on an issue and edits the comment' do it 'user comments on an issue and edits the comment' do
......
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