Fix typo in folders.js, wait before search in share test