summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-10-28 14:38:10 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-04 15:23:54 +0000
commite517da3ff07b09d680d11c98b8298d02a4b105eb (patch)
treec876ab9d7a1e95eb684e323eb0a03635909ea38e /spec
parent5368b9f249485e254a90fe7daa551d61412bee26 (diff)
downloadgitlab-ce-e517da3ff07b09d680d11c98b8298d02a4b105eb.tar.gz
Created wait_for_turbolinks and added test for refs dropdown selection with special charsadd-special-char-tests-for-refs-dropdown
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/ref_switcher_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/features/projects/ref_switcher_spec.rb b/spec/features/projects/ref_switcher_spec.rb
index b3ba40b35af..472491188c9 100644
--- a/spec/features/projects/ref_switcher_spec.rb
+++ b/spec/features/projects/ref_switcher_spec.rb
@@ -22,8 +22,20 @@ feature 'Ref switcher', feature: true, js: true do
input.native.send_keys :down
input.native.send_keys :down
input.native.send_keys :enter
+ end
+
+ expect(page).to have_title 'expand-collapse-files'
+ end
+
+ it "user selects ref with special characters" do
+ click_button 'master'
+ wait_for_ajax
- expect(page).to have_content 'expand-collapse-files'
+ page.within '.project-refs-form' do
+ page.fill_in 'Search branches and tags', with: "'test'"
+ click_link "'test'"
end
+
+ expect(page).to have_title "'test'"
end
end