Commit 92ceed16 authored by Fatih Acet's avatar Fatih Acet Committed by Rémy Coutable

Merge branch 'add-special-char-tests-for-refs-dropdown' into 'master'

Add test for refs dropdown selection with special chars

## What does this MR do?

## Are there points in the code the reviewer needs to double check?

## Why was this MR needed?

## Screenshots (if relevant)

## Does this MR meet the acceptance criteria?

- [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

See merge request !7175
parent 52c7286a
...@@ -22,8 +22,20 @@ feature 'Ref switcher', feature: true, js: true do ...@@ -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 :down input.native.send_keys :down
input.native.send_keys :enter 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 end
expect(page).to have_title "'test'"
end end
end end
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