Add a regression test for clearing local storage upon issue creation
This commit is contained in:
parent
294ab0fffd
commit
ee61ab6ffc
1 changed files with 14 additions and 0 deletions
|
@ -591,6 +591,20 @@ describe 'Issues' do
|
|||
end
|
||||
end
|
||||
|
||||
it 'clears local storage after creating a new issue', :js do
|
||||
2.times.each do
|
||||
visit new_project_issue_path(project)
|
||||
wait_for_requests
|
||||
|
||||
expect(page).to have_field('Title', with: '')
|
||||
|
||||
fill_in 'issue_title', with: 'bug 345'
|
||||
fill_in 'issue_description', with: 'bug description'
|
||||
|
||||
click_button 'Submit issue'
|
||||
end
|
||||
end
|
||||
|
||||
context 'dropzone upload file', :js do
|
||||
before do
|
||||
visit new_project_issue_path(project)
|
||||
|
|
Loading…
Reference in a new issue