Add a regression test for clearing local storage upon issue creation

This commit is contained in:
Stan Hu 2018-05-29 21:04:40 -07:00
parent 294ab0fffd
commit ee61ab6ffc
1 changed files with 14 additions and 0 deletions

View File

@ -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)