Extract UI object tests to shared example group