This is needed because the viewport setting  + initialisation is racey. The better solution will be being able to run setup/teardown prior to any initial navigation. It works locally for me without this but travis needs this workaround for now.