Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b8ba0b75
Commit
b8ba0b75
authored
Apr 11, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable capybra 2.1 ingore hidden elements
parent
630c547d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
features/steps/project/project_team_management.rb
features/steps/project/project_team_management.rb
+5
-5
features/support/env.rb
features/support/env.rb
+1
-1
No files found.
features/steps/project/project_team_management.rb
View file @
b8ba0b75
...
@@ -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
...
...
features/support/env.rb
View file @
b8ba0b75
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment