more stupid test fixing
ui: js: lib: modal: make more robust

adds the 'shown' class *after* all tasks are done on the modal