Issue #3064782 by Wim Leers: Follow-up for #3060396: make CKEditor Widget JS tests conform to best practices, and harden them