Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Apr 21, 2022
1 parent 8dd82d4 commit 0cc8284
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Samples/iOS-Swift/iOS-SwiftUITests/LaunchUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ class LaunchUITests: XCTestCase {
XCTAssertTrue(app.buttons["lonelyButton"].waitForExistence(), "Nib ViewController not loaded.")
assertApp()
}


func testCaptureError() {
app.buttons["Error"].tap()
}

func testCaptureException() {
app.buttons["NSException"].tap()
}

func testShowTableView() {
app.buttons["showTableViewButton"].tap()
XCTAssertTrue(app.navigationBars.buttons.element(boundBy: 0).waitForExistence(), "TableView not loaded.")
Expand Down
6 changes: 3 additions & 3 deletions Tests/SentryTests/SentryScreenShotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SentryScreenShotTests: XCTestCase {
}

func test_IsMainThread() {
let testWindow = TestWindow()
let testWindow = TestWindow(frame: CGRect(x: 0, y: 0, width: 10, height: 10))
var isMainThread = false

testWindow.onDrawHierarchy = {
Expand All @@ -47,8 +47,8 @@ class SentryScreenShotTests: XCTestCase {
}

func test_Draw_Each_Window() {
let firstWindow = TestWindow()
let secondWindow = TestWindow()
let firstWindow = TestWindow(frame: CGRect(x: 0, y: 0, width: 10, height: 10))
let secondWindow = TestWindow(frame: CGRect(x: 0, y: 0, width: 10, height: 10))
var drawFirstWindow = false
var drawSecondWindow = false

Expand Down

0 comments on commit 0cc8284

Please sign in to comment.