Added wait_for_page to wait until all xblocks rendered.