Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

iOS UI tests: keep the screen and the tree when the countdown is missing

Duarte Santosc7ec58247870
diff --git a/frontend/ios/App/AppUITests/OpenGymUITests.swift b/frontend/ios/App/AppUITests/OpenGymUITests.swift
index ff5959211..9bb150f00 100644
--- a/frontend/ios/App/AppUITests/OpenGymUITests.swift
+++ b/frontend/ios/App/AppUITests/OpenGymUITests.swift
@@ -68,6 +68,13 @@ final class OpenGymUITests: XCTestCase {
sleep(1)
}
if allow.waitForExistence(timeout: 2) { allow.tap() }
+ if !counting {
+ shot("3-no-countdown")
+ let tree = XCTAttachment(string: app.debugDescription)
+ tree.name = "app tree without a countdown"
+ tree.lifetime = .keepAlways
+ add(tree)
+ }
XCTAssertTrue(counting, "no rest countdown after a set")
shot("3-rest")