title: How do I set an accessibility label in SwiftUI while still being able to test the visible text in a UI test?
body: <p>Suppose I have an element on screen that shows the time left until an event which looks like this:</p>
  <blockquote>
  <p>Time left: 3mo 20d 19h 59min. 21s.</p>
  </blockquote>
  <p>But when using VoiceOver it will read it as</p>
  <blockquote>
  <p>three mo, twenty d, nineteen h, fifty nine minutes, twenty one's.</p>
  </blockquote>
  <p>So I put an accessibility label so it reads like</p>
  <blockquote>
  <p>three months, twenty days, nineteen hours, fifty nine minutes, twenty
  one seconds.</p>
  </blockquote>
  <p><strong>However now in my UI test I can only see the accessibility label.</strong> I've lost the ability to test the text that's actually visible on the screen. I want to test both the visible <em>and</em> audible text, not just one or the other.</p>
  <p>Am I doing it the wrong way and if so what is the correct way, or is there another way to test the visible text after adding an accessibilityLabel?</p>
  <p>Thanks :)</p>