Skip to content

Commit 54e373e

Browse files
committed
minor tweaks
1 parent ae30f34 commit 54e373e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bk1ch09p380unitTesting/EmptyWindowUITests/EmptyWindowUITests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class EmptyWindowUITests: XCTestCase {
2323
func testExample() {
2424

2525
let app = XCUIApplication()
26-
let screenshot = XCUIApplication().windows.firstMatch.screenshot()
26+
let screenshot = XCUIApplication().screenshot()
2727
let attachment = XCTAttachment(screenshot: screenshot)
2828
attachment.lifetime = .keepAlways
2929
attachment.name = "OpeningScreen"

bk1ch09p380unitTesting/TestPlan1.xctestplan

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"codeCoverage" : false,
1818
"commandLineArgumentEntries" : [
1919

20+
],
21+
"environmentVariableEntries" : [
22+
2023
]
2124
},
2225
"testTargets" : [

0 commit comments

Comments
 (0)