mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix UI tests (#950)
* Fixed unstored weak reference warning * Prevent the timeline from jumping whenever we access XCUIApplication properties * Prevent UI tests from causing side effects on the timeline * Update userSession reference screenshots * Fix create room UI tests * Update inviteUsers UI test reference screenshots * Allow certain tests to enable timeline accessibility * Fix roomLayout tests and update reference screenshots * Disable the testTimelineLayoutInMiddle test because of flakiness * Update screenshots following timestamp addition * Another attempt * Yet another attempt, replace XCUIScreen screenshots with XCUIApplication ones, decrease delay to 1 second * Allow tests to retry up to 3 times before failing the run
This commit is contained in:
@@ -43,4 +43,16 @@ public enum Tests {
|
||||
nil
|
||||
#endif
|
||||
}
|
||||
|
||||
static var shouldDisableTimelineAccessibility: Bool {
|
||||
guard isRunningUITests else {
|
||||
return false
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
return ProcessInfo.processInfo.environment["UI_TESTS_DISABLE_TIMELINE_ACCESSIBILITY"] != nil
|
||||
#else
|
||||
return false
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user