We do not guarantee that click resolves before load event comes. Theoretically, inserting two tasks before resolving load should help, but seems like a strange contract. Drive-by: move auto waiting tests to a separate file.