diff options
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 | 21 |
1 files changed, 21 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..1e89942e932 --- /dev/null +++ b/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb @@ -0,0 +1,21 @@ +module QA + describe 'push code to repository' do + context 'with regular account over http' 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 |