File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Samples/iOS-SwiftUI/iOS-SwiftUI-UITests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ import Sentry
1
2
import SentrySampleShared
2
3
import SentrySampleUITestShared
3
4
import XCTest
@@ -49,11 +50,13 @@ class LaunchUITests: XCTestCase {
49
50
XCTAssertEqual ( app. staticTexts [ " TTDInfo " ] . label, " TTID and TTFD found " )
50
51
}
51
52
52
- func testSendsError ( ) {
53
+ func testCaptureErrorReturnsValidId ( ) {
53
54
let app = newAppSession ( )
54
55
app. safelyLaunch ( )
55
56
app. buttons [ " Capture Error " ] . tap ( )
56
- XCTAssertFalse ( app. staticTexts [ " errorId " ] . label. isEmpty)
57
+ let errorId = app. staticTexts [ " errorId " ] . label
58
+ let sentryErrorId = SentryId ( uuidString: errorId)
59
+ XCTAssertNotEqual ( sentryErrorId. sentryIdString, SentryId . empty. sentryIdString)
57
60
}
58
61
59
62
func newAppSession( ) -> XCUIApplication {
You can’t perform that action at this time.
0 commit comments