summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-02-11 09:04:59 +0000
committerRamya Authappan <rauthappan@gitlab.com>2019-02-11 09:04:59 +0000
commit97265d39e72cbb32468a3f1d671820528af02a8b (patch)
tree03c7d01e071ce0843987ad6f1eb96234fa20074a /qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb
parent25af9032750c215860829fecb196da1e1c5ace6b (diff)
downloadgitlab-ce-97265d39e72cbb32468a3f1d671820528af02a8b.tar.gz
[CE] Improve `wait_for_push`
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.rb3
1 files changed, 1 insertions, 2 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
index d10ad896b3b..58e6c160a3a 100644
--- 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
@@ -5,7 +5,7 @@ module QA
describe 'Git push over HTTP', :ldap_no_tls do
it 'user pushes code to the repository' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
- Page::Main::Login.act { sign_in_using_credentials }
+ Page::Main::Login.perform(&:sign_in_using_credentials)
project_push = Resource::Repository::ProjectPush.fabricate! do |push|
push.file_name = 'README.md'
@@ -13,7 +13,6 @@ module QA
push.commit_message = 'Add README.md'
end
project_push.project.visit!
- Page::Project::Show.act { wait_for_push }
expect(page).to have_content('README.md')
expect(page).to have_content('This is a test project')