Added group milestones form spec
This commit is contained in:
parent
c44dff9984
commit
c8d29d17ae
|
|
@ -19,9 +19,9 @@ feature 'Group milestones', :js do
|
|||
end
|
||||
|
||||
it 'renders description preview' do
|
||||
form = find('.gfm-form')
|
||||
description = find('.note-textarea')
|
||||
|
||||
form.fill_in(:milestone_description, with: '')
|
||||
description.native.send_keys('')
|
||||
|
||||
click_link('Preview')
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ feature 'Group milestones', :js do
|
|||
|
||||
click_link('Write')
|
||||
|
||||
form.fill_in(:milestone_description, with: ':+1: Nice')
|
||||
description.native.send_keys(':+1: Nice')
|
||||
|
||||
click_link('Preview')
|
||||
|
||||
|
|
@ -51,6 +51,13 @@ feature 'Group milestones', :js do
|
|||
|
||||
expect(find('.start_date')).to have_content(Date.today.at_beginning_of_month.strftime('%b %-d, %Y'))
|
||||
end
|
||||
|
||||
it 'description input does not support autocomplete' do
|
||||
description = find('.note-textarea')
|
||||
description.native.send_keys('!')
|
||||
|
||||
expect(page).not_to have_selector('.atwho-view')
|
||||
end
|
||||
end
|
||||
|
||||
context 'milestones list' do
|
||||
|
|
|
|||
Loading…
Reference in New Issue