A11yUITests: An XCUI Testing library for accessibility
[]
Mobile A11y
In Xcode, create a new suite of UI Tests from File > New > Target and choose UI Testing Bundle. On the next screen ensure the app you’re looking to test is selected under ‘Target to be Tested.’ Run your chosen suite by passing your array along with the elements you want to test to a11y(tests: [A11yTests], on elements: [XCUIElement]) .