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:
authorRobert Speicher <rspeicher@gmail.com>2016-07-08 01:25:05 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-07-08 01:25:05 +0300
commitbf2a86b73cce332ff8f4392ffc8df501193f32ec (patch)
treec8284a396e4dc87137f333c647dc641ad887ee29 /features
parent39fbec941939f76ec08a25f537cc3f4a308e21f5 (diff)
Revert "Merge branch 'issue_3946' into 'master' "
This reverts commit 68155ee73b549a4f79744bb325542c29d45c71ea, reversing changes made to 7ebd011ed1de7aee706f07a53c63c90f1c8aa5d4.
Diffstat (limited to 'features')
-rw-r--r--features/admin/projects.feature4
-rw-r--r--features/steps/admin/projects.rb9
2 files changed, 5 insertions, 8 deletions
diff --git a/features/admin/projects.feature b/features/admin/projects.feature
index 8929bcf8d80..c5ee80136c8 100644
--- a/features/admin/projects.feature
+++ b/features/admin/projects.feature
@@ -10,11 +10,10 @@ Feature: Admin Projects
Then I should see all non-archived projects
And I should not see project "Archive"
- @javascript
Scenario: I should see all projects in the list
Given archived project "Archive"
When I visit admin projects page
- And I select "Show archived projects"
+ And I check "Show archived projects"
Then I should see all projects
And I should see "archived" label
@@ -23,7 +22,6 @@ Feature: Admin Projects
And I click on first project
Then I should see project details
- @javascript
Scenario: Transfer project
Given group 'Web'
And I visit admin project page
diff --git a/features/steps/admin/projects.rb b/features/steps/admin/projects.rb
index d77945a6b9c..a7a28755a6c 100644
--- a/features/steps/admin/projects.rb
+++ b/features/steps/admin/projects.rb
@@ -18,9 +18,9 @@ class Spinach::Features::AdminProjects < Spinach::FeatureSteps
end
end
- step 'I select "Show archived projects"' do
- find(:css, '#sort-projects-dropdown').click
- click_link 'Show archived projects'
+ step 'I check "Show archived projects"' do
+ page.check 'Show archived projects'
+ click_button "Search"
end
step 'I should see "archived" label' do
@@ -45,8 +45,7 @@ class Spinach::Features::AdminProjects < Spinach::FeatureSteps
step 'I transfer project to group \'Web\'' do
allow_any_instance_of(Projects::TransferService).
to receive(:move_uploads_to_new_namespace).and_return(true)
- click_button 'Search for Namespace'
- click_link 'group: web'
+ find(:xpath, "//input[@id='new_namespace_id']").set group.id
click_button 'Transfer'
end