Automate view testing