Commit db472ab9 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-move-method-to-the-bottom' into 'master'

Move test method to the bottom

See merge request gitlab-org/gitlab-ce!27816
parents 7ee276ea d80080b5
......@@ -3,11 +3,6 @@
module QA
context 'Create' do
describe 'Wiki management' do
def validate_content(content)
expect(page).to have_content('Wiki was successfully updated')
expect(page).to have_content(/#{content}/)
end
it 'user creates, edits, clones, and pushes to the wiki' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
......@@ -38,6 +33,11 @@ module QA
expect(page).to have_content('My Third Wiki Content')
end
def validate_content(content)
expect(page).to have_content('Wiki was successfully updated')
expect(page).to have_content(/#{content}/)
end
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