Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab FOSS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab FOSS
Commits
e95d43df
Commit
e95d43df
authored
8 years ago
by
Phil Hughes
Committed by
Jacob Schatz
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed up tests
parent
08dd831f
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
+1
-1
1 addition, 1 deletion
...ripts/protected_branches/protected_branch_dropdown.js.es6
spec/features/projects/ref_switcher_spec.rb
+3
-2
3 additions, 2 deletions
spec/features/projects/ref_switcher_spec.rb
with
4 additions
and
3 deletions
app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
+
1
−
1
View file @
e95d43df
...
...
@@ -48,7 +48,7 @@ class ProtectedBranchDropdown {
onClickCreateWildcard() {
// Refresh the dropdown's data, which ends up calling `getProtectedBranches`
this.$dropdown.data('glDropdown').remote.execute();
this.$dropdown.data('glDropdown').selectRowAtIndex(
0
);
this.$dropdown.data('glDropdown').selectRowAtIndex(
gon.open_branches.length
);
}
getProtectedBranches(term, callback) {
...
...
This diff is collapsed.
Click to expand it.
spec/features/projects/ref_switcher_spec.rb
+
3
−
2
View file @
e95d43df
...
...
@@ -17,14 +17,15 @@
page
.
within
'.project-refs-form'
do
input
=
find
(
'input[type="search"]'
)
input
.
set
'expand'
input
.
set
'binary'
wait_for_ajax
input
.
native
.
send_keys
:down
input
.
native
.
send_keys
:down
input
.
native
.
send_keys
:enter
end
expect
(
page
).
to
have_title
'
expand-collapse-files
'
expect
(
page
).
to
have_title
'
binary-encoding
'
end
it
"user selects ref with special characters"
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment