Fix flakey selenium specs for files
Fix flakey selenium specs for files

This change causes the files UI to wait
for all DOM content to be loaded before
initializing the router and listening
for LTI messages

flag=none

Test Plan:
Navigate to /courses/:id/files and verify
the Files UI loads and functions as before

Change-Id: Iee3b5579db889f455353184fd6c39a2716d42003
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/280800
Reviewed-by: Ahmad Amireh <a53a33601b8dd9d06ae9e50f1f30fbe957aba866@instructure.com>
QA-Review: Ahmad Amireh <a53a33601b8dd9d06ae9e50f1f30fbe957aba866@instructure.com>
Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com>
Product-Review: Weston Dransfield <e9203059795dc94e28a8831c65eb7869e818825e@instructure.com>

sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms