Refactor ui tests to make writing tests faster
Add UI test for plot detail

This test was created in conjunction with fixing an actual bug that was discovered in an earlier iteration of this branch and almost introduced.