Commit e95d43df authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz

Fixed up tests

parent 08dd831f
...@@ -48,7 +48,7 @@ class ProtectedBranchDropdown { ...@@ -48,7 +48,7 @@ class ProtectedBranchDropdown {
onClickCreateWildcard() { onClickCreateWildcard() {
// Refresh the dropdown's data, which ends up calling `getProtectedBranches` // Refresh the dropdown's data, which ends up calling `getProtectedBranches`
this.$dropdown.data('glDropdown').remote.execute(); this.$dropdown.data('glDropdown').remote.execute();
this.$dropdown.data('glDropdown').selectRowAtIndex(0); this.$dropdown.data('glDropdown').selectRowAtIndex(gon.open_branches.length);
} }
getProtectedBranches(term, callback) { getProtectedBranches(term, callback) {
......
...@@ -17,14 +17,15 @@ feature 'Ref switcher', feature: true, js: true do ...@@ -17,14 +17,15 @@ feature 'Ref switcher', feature: true, js: true do
page.within '.project-refs-form' do page.within '.project-refs-form' do
input = find('input[type="search"]') 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 :down input.native.send_keys :down
input.native.send_keys :enter input.native.send_keys :enter
end end
expect(page).to have_title 'expand-collapse-files' expect(page).to have_title 'binary-encoding'
end end
it "user selects ref with special characters" do it "user selects ref with special characters" do
......
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