Adding a wait statement to allow ajax calls to finish before making assertions about text that has changed. Fixes TNL-3943 flaky test ticket.