Commit ee61ab6f authored by Stan Hu's avatar Stan Hu

Add a regression test for clearing local storage upon issue creation

parent 294ab0ff
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment