Thank you for this topic, it helped me, I'll just correct that to set choice by a value use:
document.querySelector('.choices__item[data-value="3"]').dispatchEvent(new Event('mousedown'));
(In my scenario I am using dropdown with "Show value" = On)