1,169 questions
1 vote
1 answer
89 views
How to reliably handle "Allow Paste" system alert in iOS UITests? (Alert sometimes blocks interaction)
I'm trying to stabilize a flaky UI test that deals with the "Allow Paste" system alert in iOS (see screenshot below). Sometimes it works, sometimes the test hangs or fails. I'd appreciate ...
0 votes
1 answer
46 views
Fastlane Screenshots: Remove "iPhone disconnected" icon on watchOS
I'm using Fastlane to make promo screens on watchOS simulator. The problem is that Fastlane starts watchOS simulator alone, without the paired iPhone. So the screenshots have "iPhone disconnected&...
0 votes
0 answers
81 views
How can I transfer data between the application target and the UI test target?
I have an application that needs to be tested (UI). The application uses different feature configurations, and I'm looking for a convenient way to turn features on/off for proper testing. What are ...
-1 votes
1 answer
49 views
Snapshot testing for texture nodes - Swift
I am writing UI tests for a view that was implemented in textures. We are using swift-snapshot-testing module by pointfreeco. This is my first time writing tests as well. The issue is that when I ...
1 vote
1 answer
129 views
Swift UI testing: simulating left/right swipe when a list item is clickable
I have an app where clicking on a row toggles state, and doing a left swipe performs a delete of the item. My problem is that UI test calls like swipeRight() do not engage the swipe action. Rather, ...
0 votes
1 answer
90 views
Swift UI testing: staticTexts is not being updated when I go to a new view
I have a simple app with two views, a home page and a main page. I have a button on the home page that goes to the main page via logic like this: .fullScreenCover(isPresented: $showingMain) { ...
2 votes
0 answers
310 views
XCode 15.4 keeps crashing when trying to "Record UI Tests"
I'm using Xcode Version 15.4 (15F31d) and when I click the Record UI Tests icon, as soon as it finishes building, Xcode crashes. I'm not 100% sure why this is happening, but I've seen multiple bug ...
0 votes
1 answer
34 views
Simulate hardware keyboard button press in Xcode UI test for iPad
XCUIElement has two methods named typeKey(_:modifierFlags:): the first one takes a String as an argument, the second one a XCUIKeyboardKey, which has constants like .downArrow. Now, even if the ...
0 votes
1 answer
364 views
Swift UI Test - Failed to scroll to visible - popup / fullscreenCover
I'm trying to write some UI tests for my app and i'm using a third party popup view library. Under the hood i see it's using the fullscreenCover view modifier. My tested class looks something like ...
2 votes
0 answers
222 views
SwiftUI Accessibility trait test with XCTest
I've been tweaking the accessibility of a feature of our app after an Accessibility audit. The result, when using the app with VoiceOver, for example, is conform to the requests of the audit. For ...
2 votes
0 answers
150 views
How to write UI tests using XCUITest framework for large tableviews in UIKit app
I am trying to write a UI automation test for my iOS app using XCUITest framework. My app has a screen with a UITableView that has a datasource which can have over 3000 rows. My UI tests are getting ...
1 vote
1 answer
445 views
How to create an Xcode UI Test Target in CMake
Xcode has two template types of testing: Unit Test Targets and UI Test Targets, which run the host application differently. Looking online, I don't see any clear distinction of how these host targets ...
0 votes
1 answer
289 views
How to use info.plist in Xcode UITest target?
I have a project with iOS app and UITests targets. UITest target has its own info.plist, and I tried to add additional row: But during tests executing new row is unavailable in code: (lldb) po Bundle....
0 votes
1 answer
554 views
Is there any way to run UITests with out launching iOS Simulator
I have been trying to find a solution to run UI Tests for iOS projects without launching the iOS Simulator. My intention is to run xcodebuild command from Terminal for CI pipeline but without ...
0 votes
1 answer
445 views
AWS Device Farm XCTest UI generated .xctestrun file is not valid
Device Farm generates a .xctestrun file and the location is stored at $DEVICEFARM_XCUITESTRUN_FILE. However, my test fails everytime xcodebuild: error: Failed to build workspace temporary with scheme ...