summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-04-29 15:35:59 +0000
committerSanad Liaquat <sliaquat@gitlab.com>2019-04-29 15:35:59 +0000
commitdb472ab9f863dedb1d444304147fe036e5121a65 (patch)
tree4571b8be6ad3d628867d2f739eeaff2b84292635
parent7ee276eafa67ceba8c8f2942aa7ae986f771153d (diff)
parentd80080b5cb6721e8d08d9cb8702c59730215467a (diff)
downloadgitlab-ce-db472ab9f863dedb1d444304147fe036e5121a65.tar.gz
Merge branch 'qa-move-method-to-the-bottom' into 'master'
Move test method to the bottom See merge request gitlab-org/gitlab-ce!27816
-rw-r--r--qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb b/qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
index 309ae6cd986..e689ba4c69c 100644
--- a/qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
+++ b/qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
@@ -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