diff options
author | Stan Hu <stanhu@gmail.com> | 2018-08-29 22:54:12 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-08-29 22:54:12 -0700 |
commit | 69eddc14b11b63429b8f2511a1127616c692b94c (patch) | |
tree | a94482be144cef60a8ee1b590857ca24f49f418a /qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb | |
parent | bc7a4eedf9fa6681465b622af52c34d49ffb5d0e (diff) | |
parent | f981d4febbbb5103262f4daa858236d9c4ed9d67 (diff) | |
download | gitlab-ce-69eddc14b11b63429b8f2511a1127616c692b94c.tar.gz |
Merge branch 'master' into sh-test-ldap-clones-via-gitlab-qa
Diffstat (limited to 'qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb new file mode 100644 index 00000000000..bf32569b6cb --- /dev/null +++ b/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module QA + context :create do + describe 'Git push over HTTP', :ldap do + it 'user pushes code to the repository' do + Runtime::Browser.visit(:gitlab, Page::Main::Login) + Page::Main::Login.act { sign_in_using_credentials } + + Factory::Repository::ProjectPush.fabricate! do |push| + push.file_name = 'README.md' + push.file_content = '# This is a test project' + push.commit_message = 'Add README.md' + end + + Page::Project::Show.act { wait_for_push } + + expect(page).to have_content('README.md') + expect(page).to have_content('This is a test project') + end + end + end +end |