UI Testing and 'Allow Paste'

I am developing an app that allows the user to ask it to process the clipboard contents and do something with it.

In developing a XC UI Test, I find the app stops while it waits for the user to give permission. That breaks the automation.

I tried:

  let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard")
  let allowButton = springboard.buttons["Allow Paste"]

But that does not work. Is there a way to tell the framework to automatically give the test permission to access the Paste clipboard (or to allow me to write tests to grant this)?