gitlab-org--gitlab-foss/spec/features/issues
Alfredo Sumaran 4db62fef53 Merge branch '25286-customer-label-doesn-t-autocomplete-correctly' into 'master'
Correct autocomplete for values with special characters

## What does this MR do?

This adds a check for any special chars in any value passed to the `DefaultOptions.beforeInsert` callback function. If special chars are found and `skipSpecialCharTest` option is `false`, it will wrap the value in quotation marks.

This fixed autocompleting `~customer+` instead of `~"customer+"`.

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

## Why was this MR needed?

## Screenshots (if relevant)

![2016-12-03_10.37.11](/uploads/59159623638939933d23b447692775b8/2016-12-03_10.37.11.gif)

## Does this MR meet the acceptance criteria?

- [ ] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) 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
- [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?


Closes #25286, #24961

See merge request !7910
2016-12-12 23:06:24 +00:00
..
award_emoji_spec.rb Disabled award emoji button when user is not logged in 2016-11-22 10:25:09 +00:00
award_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
bulk_assignment_labels_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
create_issue_for_discussions_in_merge_request_spec.rb Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
filter_by_labels_spec.rb Small improvements thanks to Robert's feedback 2016-09-30 12:02:54 +02:00
filter_by_milestone_spec.rb fixes milestone dropdown not select issue 2016-11-01 13:29:47 +06:00
filter_issues_spec.rb Added empty state svg and set up blank conditional 2016-11-18 03:57:36 +00:00
form_spec.rb Updated wording in the specs 2016-07-21 08:52:37 +01:00
gfm_autocomplete_spec.rb Added special char test to the default beforeInsert callback. I removed the quotes from the milestone displayTpl and added a skip setting for emoji instance 2016-12-08 17:33:53 +00:00
issue_sidebar_spec.rb Include author in assignee dropdown search 2016-11-17 11:13:39 +00:00
move_spec.rb Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
new_branch_button_spec.rb Rephrase some system notes to be compatible with new system note style 2016-11-24 18:26:29 +08:00
note_polling_spec.rb Improve note factory 2016-05-29 15:03:00 -04:00
reset_filters_spec.rb Added issuable_filters_present to check for active filters before rendering the reset button 2016-10-07 14:25:20 +01:00
todo_spec.rb Fix title case to sentence case 2016-11-23 16:34:58 -07:00
update_issues_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
user_uses_slash_commands_spec.rb Add a /wip slash command 2016-10-03 09:36:21 +02:00