Progress bar on image upload was introduced with #65828 in saas-14.3. Since, it has been broken in saas-14.3 with 3765ac1 which broke the flow for image unrecognized by PIL, see the other commit of this PR. It was also completely broken in master (saas-14.5) with the wowl refactoring, where no progress bar were shown at all. It would show empty toastr. This was fixed with #74027 This commit introduces a complete testing suite for that progress bar: - Single image upload - Multi image upload - Success upload - Unsupported error - Unrecognized error task-2607393 Closes #74122 closes odoo/odoo#74454 X-original-commit: 381d432faf8d19e71ff1d63c29a14064a6d7f57f Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
12 lines
368 B
Python
12 lines
368 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import odoo.tests
|
|
|
|
|
|
@odoo.tests.common.tagged('post_install', '-at_install')
|
|
class TestImageUploadProgress(odoo.tests.HttpCase):
|
|
|
|
def test_01_image_upload_progress(self):
|
|
self.start_tour("/test_image_progress", 'test_image_upload_progress', login="admin")
|