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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
2582a3a4
Commit
2582a3a4
authored
Apr 28, 2017
by
Stan Hu
Committed by
Robert Speicher
Apr 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change from .click -> .trigger('click') to make spec pass
parent
37ca458f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/features/protected_branches_spec.rb
spec/features/protected_branches_spec.rb
+3
-3
No files found.
spec/features/protected_branches_spec.rb
View file @
2582a3a4
...
...
@@ -9,17 +9,17 @@ feature 'Projected Branches', feature: true, js: true do
def
set_allowed_to
(
operation
,
option
=
'Masters'
,
form:
'#new_protected_branch'
)
within
form
do
find
(
".js-allowed-to-
#{
operation
}
"
).
click
find
(
".js-allowed-to-
#{
operation
}
"
).
trigger
(
'click'
)
wait_for_ajax
Array
(
option
).
each
{
|
opt
|
click_on
(
opt
)
}
find
(
".js-allowed-to-
#{
operation
}
"
).
click
# needed to submit form in some cases
find
(
".js-allowed-to-
#{
operation
}
"
).
trigger
(
'click'
)
# needed to submit form in some cases
end
end
def
set_protected_branch_name
(
branch_name
)
find
(
".js-protected-branch-select"
).
click
find
(
".js-protected-branch-select"
).
trigger
(
'click'
)
find
(
".dropdown-input-field"
).
set
(
branch_name
)
click_on
(
"Create wildcard
#{
branch_name
}
"
)
end
...
...
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