Releases: Tunous/XCAppTest
Releases · Tunous/XCAppTest
0.7.0
- Added
assertHasCount
variant which accepts ranges. For example to check for at least 3 elements useassertHasCount(3...)
, or to check between 2 and 5 elements useassertHasCount(2..<5)
. - Added extension on
CGVector
to offset it by normalized x and/or y components:vector.offset(x: 0.2, y: 0.3)
- Added constants for Springboard
XCUIApplication.springborad
and MessagesXCUIApplication.messages
- Added extension to perform drag between 2 normalized positions inside of element:
element.drag(from: .center, to: .top, pressDuration: 0.1)
- Added extension to perform press inside of normalized offset of element:
element.press(forDuration: 1, withNormalizedOffset: .bottom)
- Added extension to assert that element is empty (meaning its value is equal to placeholder value):
element.assertIsEmpty()
0.6.0
- Marked tap methods as unavailable for tvOS
- Added versions of assertion methods that accept Bool parameter
Full Changelog: 0.5.1...0.6.0
0.5.1
- Added documentation
- Fixed
moveToBackground
not being available
Full Changelog: 0.5.0...0.5.1
0.5.0
- tapWhenReady no longer checks interactivity. Instead it attempts to tap as soon as element becomes available. To wait for hittable flag like previous implementation call
waitForInteractivity
beforetapWhenReady
. - Fixed package not building for macOS, moveToBackground is not available for it.
Full Changelog: 0.4.1...0.5.0
0.4.1
- Extensions on XCUIApplication return self
Full Changelog: 0.4.0...0.4.1
0.4.0
- Added
tap(withNormalizedOffset:)
extension to allow tapping exact point in view. - Added normalized offset extensions on
CGVector
likecenter
,bottomRight
to easier specify where to tap - Improved default error messages to display full element name instead of "Element" text in assertions
Full Changelog: 0.3.0...0.4.0
0.3.0
- Improved assertion logs
Full Changelog: 0.2.1...0.3.0
0.2.1
0.2.0
- All assertions now succeed without wait if condition is met when called
assertHasLabel
,assertContainsText
,assertHasValue
,assertIsDisabled
no longer check if element existsassertIsInteractive
andwaitForInteractivity
now check whether element exists- Renamed
assertIsNotInteractive
toassertIsDisabled
- Increased timeout for all assertions to 8 seconds
- Added
tapWhenReady
for use when element isn’t interactive immediatley