Commit b8ba0b75 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

disable capybra 2.1 ingore hidden elements

parent 630c547d
...@@ -24,7 +24,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps ...@@ -24,7 +24,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps
select2(user.id, from: "#user_ids", multiple: true) select2(user.id, from: "#user_ids", multiple: true)
within "#new_team_member" do within "#new_team_member" do
select "Reporter", :from => "project_access" select "Reporter", from: "project_access"
end end
click_button "Add users" click_button "Add users"
end end
...@@ -44,7 +44,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps ...@@ -44,7 +44,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps
And 'I change "Sam" role to "Reporter"' do And 'I change "Sam" role to "Reporter"' do
user = User.find_by_name("Sam") user = User.find_by_name("Sam")
within ".user_#{user.id}" do within ".user_#{user.id}" do
select "Reporter", :from => "team_member_project_access" select "Reporter", from: "team_member_project_access"
end end
end end
...@@ -65,11 +65,11 @@ class ProjectTeamManagement < Spinach::FeatureSteps ...@@ -65,11 +65,11 @@ class ProjectTeamManagement < Spinach::FeatureSteps
end end
And 'gitlab user "Mike"' do And 'gitlab user "Mike"' do
create(:user, :name => "Mike") create(:user, name: "Mike")
end end
And 'gitlab user "Sam"' do And 'gitlab user "Sam"' do
create(:user, :name => "Sam") create(:user, name: "Sam")
end end
And '"Sam" is "Shop" developer' do And '"Sam" is "Shop" developer' do
...@@ -79,7 +79,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps ...@@ -79,7 +79,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps
end end
Given 'I own project "Website"' do Given 'I own project "Website"' do
@project = create(:project, :name => "Website") @project = create(:project, name: "Website")
@project.team << [@user, :master] @project.team << [@user, :master]
end end
......
...@@ -30,7 +30,7 @@ Spinach.hooks.on_tag("javascript") do ...@@ -30,7 +30,7 @@ Spinach.hooks.on_tag("javascript") do
::Capybara.current_driver = ::Capybara.javascript_driver ::Capybara.current_driver = ::Capybara.javascript_driver
end end
Capybara.default_wait_time = 10 Capybara.default_wait_time = 10
Capybara.ignore_hidden_elements = false
DatabaseCleaner.strategy = :truncation DatabaseCleaner.strategy = :truncation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment