Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
menahassan committed Mar 14, 2024
1 parent 5077731 commit 5547e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Stronger/WorkoutVideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ struct WorkoutVideoView: View {

TipsView(tips: exercise.tips)
.frame(maxWidth: .infinity)
.accessibilityIdentifier("Tips View")
}
.padding()
}
Expand Down
4 changes: 4 additions & 0 deletions StrongerUITests/InputFormTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@ class InputFormTest: XCTestCase {

// Simulate a tap on the thumbnail image
thumbnailImage.tap()

let tipsView = app.staticTexts["Play the video to see how to do Squats!"] // Use the actual identifier or part of the tips text
XCTAssertTrue(tipsView.waitForExistence(timeout: 2), "The tips view does not exist.")
//XCTAssertTrue(tipsViewExists, "Tips are not displayed.")

Check failure on line 61 in StrongerUITests/InputFormTest.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Comment Spacing Violation: Prefer at least one space after slashes for comments (comment_spacing)
}
}

0 comments on commit 5547e35

Please sign in to comment.