mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Show categorised search queries in the search autocomplete Fixes #5885 It works in 3 categories, Dashboard, Groups and Project. ## Dashboard context  ## Group context  ## Project context  ## Screencast  See merge request !4499
27 lines
758 B
CoffeeScript
27 lines
758 B
CoffeeScript
#= require notes
|
|
#= require gl_form
|
|
|
|
window.gon or= {}
|
|
window.disableButtonIfEmptyField = -> null
|
|
|
|
describe 'Notes', ->
|
|
describe 'task lists', ->
|
|
fixture.preload('issue_note.html')
|
|
|
|
beforeEach ->
|
|
fixture.load('issue_note.html')
|
|
$('form').on 'submit', (e) -> e.preventDefault()
|
|
|
|
@notes = new Notes()
|
|
|
|
it 'modifies the Markdown field', ->
|
|
$('input[type=checkbox]').attr('checked', true).trigger('change')
|
|
expect($('.js-task-list-field').val()).toBe('- [x] Task List Item')
|
|
|
|
it 'submits the form on tasklist:changed', ->
|
|
submitted = false
|
|
$('form').on 'submit', (e) -> submitted = true; e.preventDefault()
|
|
|
|
$('.js-task-list-field').trigger('tasklist:changed')
|
|
expect(submitted).toBe(true)
|