Harden test harness and UI suite
This commit is contained in:
@@ -162,10 +162,10 @@ final class SettingsTests: BaseUITestCase {
|
||||
let switchCoord = toggle.coordinate(withNormalizedOffset: CGVector(dx: 0.9, dy: 0.5))
|
||||
switchCoord.tap()
|
||||
|
||||
// Small wait for the toggle animation to complete
|
||||
sleep(1)
|
||||
|
||||
// Value should have changed
|
||||
waitUntil(timeout: BaseUITestCase.shortTimeout, "Toggle value should change after tapping the switch") {
|
||||
(toggle.value as? String) != initialValue
|
||||
}
|
||||
let newValue = toggle.value as? String
|
||||
XCTAssertNotEqual(initialValue, newValue,
|
||||
"Toggle value should change after tap (was '\(initialValue ?? "nil")', now '\(newValue ?? "nil")')")
|
||||
|
||||
Reference in New Issue
Block a user