summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread_window.xml
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-06-29 14:14:00 +0200
committerAlexandre Kühn <aku@odoo.com>2018-06-29 14:24:51 +0200
commit46f1609b4a8c361d30941850436951b4f02e985a (patch)
tree6f735c637a2cd6b560714858766158c376175866 /addons/mail/static/src/xml/thread_window.xml
parent276ea817f4675a73576905edbc2a4567570ac206 (diff)
[FIX] mail:tests: more precise jQuery selector on modal body content
Tests from [1] were not passing, due to changes from [2]. This is due to the fact that `$.('.modal-body')` picks 2 elements, instead of 1. Partial HTML before [2]: ``` <main class="modal-body"> <div> <p> ... </p> </div> </main> ``` Partial HTML after [1]: ``` <main class="modal-body"> <main role="alert" class="modal-body"> <p> ... </p> </main> </main> ``` In order to not pick both DOM elements, we refine the jQuery selector to pick the `<p>`, so that there's only one element and it has the same text content. [1] [FIX] mail: warn user on record reload before post message https://github.com/odoo/odoo/commit/b74d1e90ef32893bfbcf750cdf4586c453790b01 [2] [IMP] Improve compatibility with screen readers (accessibility) (#24574) https://github.com/odoo/odoo/commit/9de1bc0eef6f5bfaa2a8d745431caa361ae91548
Diffstat (limited to 'addons/mail/static/src/xml/thread_window.xml')
0 files changed, 0 insertions, 0 deletions