Fix acceptance test to check that clicked link is visible before clicking it