Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-19 18:46:01 +0400
committerMarin Jankovski <marin@gitlab.com>2014-06-19 18:51:36 +0400
commitdb88797ef9e9012238b45857dfcec15a12838305 (patch)
treee92d02b6ea149ea7509a4f74a72d3d021491b570 /features/steps/project/redirects.rb
parent26d1bd7c2a285da734ed0b8eab5c31cd5237caa4 (diff)
Fix test
Diffstat (limited to 'features/steps/project/redirects.rb')
-rw-r--r--features/steps/project/redirects.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/features/steps/project/redirects.rb b/features/steps/project/redirects.rb
index 2ce0e836119..5a4342dba30 100644
--- a/features/steps/project/redirects.rb
+++ b/features/steps/project/redirects.rb
@@ -33,7 +33,19 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps
end
step 'I click on "Sign In"' do
- click_link "Sign in"
+ within '.pull-right' do
+ click_link "Sign in"
+ end
+ end
+
+ step 'Authenticate' do
+ admin = create(:admin)
+ project = Project.find_by(name: 'Community')
+ find(:xpath, "//input[@id='return_to']").set "/#{project.path_with_namespace}"
+ fill_in "user_login", with: admin.email
+ fill_in "user_password", with: admin.password
+ click_button "Sign in"
+ Thread.current[:current_user] = admin
end
step 'I should be redirected to "Community" page' do