The selectionchange event is triggered one tick after the selection changes so we need to wait for it to be triggered before moving forward with testing. Doing this implied correcting a test: as we were not waiting for the selectionchange event, we were not taking advantage of some corrections applied there. Part-of: odoo/odoo#141303