Skip to content

Commit

Permalink
Add comments to UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernson committed May 13, 2024
1 parent df680ed commit 77b901b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TemplateAppUITests/ExampleUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ final class ExampleUITests: XCTestCase {
continueAfterFailure = false

let app = XCUIApplication()
// Custom launch arguments can be set here
// app.launchArguments = ["testing"]
app.launch()
// A scenario provides the starting point of your tests ('GIVEN <screen>'). In each test case,
// you chain behaviors ('WHEN I do <action>') and assertions ('THEN I expect <result>') using the scenario.
scenario = Scenario(given: app)
}

func testExample() {
// Example of a behavior-driven test
scenario
.then { homeView in
XCTAssertFalse(homeView.userEmailLabel.exists)
Expand Down

0 comments on commit 77b901b

Please sign in to comment.