Automatic Accessibility Audits on previews part 1 (#4322)

* setup target

* accessibility tests implementation

* removed ipad check

* pr improvements

* updated project
This commit is contained in:
Mauro
2025-07-15 14:40:16 +02:00
committed by GitHub
parent 74952659e8
commit c1b94a2d9f
18 changed files with 951 additions and 8 deletions
@@ -0,0 +1,51 @@
name: AccessibilityTests
schemes:
AccessibilityTests:
analyze:
config: Debug
archive:
config: Release
build:
targets:
AccessibilityTests: all
profile:
config: Release
run:
config: Debug
disableMainThreadChecker: false
test:
config: Debug
testPlans:
- path: AccessibilityTests.xctestplan
defaultPlan: true
targets:
AccessibilityTests:
type: bundle.ui-testing
platform: iOS
dependencies:
- target: ElementX
- package: KZFileWatchers
info:
path: ../SupportingFiles/Info.plist
settings:
base:
PRODUCT_NAME: AccessibilityTests
PRODUCT_BUNDLE_IDENTIFIER: ${BASE_BUNDLE_IDENTIFIER}.accessibility.tests
configs:
# This is required to remove the $(inherited) flags
# which would prevent SnapshotTesting to be imported in UI Tests
debug:
OTHER_SWIFT_FLAGS: ["-DDEBUG"]
release:
OTHER_SWIFT_FLAGS: ["-DRELEASE"]
sources:
- path: ../Sources
- path: ../SupportingFiles
- path: ../../ElementX/Sources/UITests/UITestsSignalling.swift