Commit 854f7eff authored by Walmyr Lima's avatar Walmyr Lima

Better scope end-to-end test

Move test pre-conditions to before block, and leave only the test
steps and verifications in the it block.
parent 9967b2d1
......@@ -3,7 +3,7 @@
module QA
context 'Plan' do
describe 'Issue comments' do
it 'user comments on an issue and edits the comment' do
before do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
......@@ -11,7 +11,9 @@ module QA
issue.title = 'issue title'
end
issue.visit!
end
it 'user comments on an issue and edits the comment' do
Page::Project::Issue::Show.perform do |issue_show_page|
first_version_of_comment = 'First version of the comment'
second_version_of_comment = 'Second version of the comment'
......
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