Skip to content

Commit

Permalink
Fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Oct 17, 2024
1 parent 19a7458 commit 23cc7f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/UITests/TestAppUITests/TestAppUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ class TestAppUITests: XCTestCase {

app.staticTexts["Weight Measurement"].tap()

XCTAssert(app.navigationBars.staticTexts["Weight Measurement"].waitForExistence(timeout: 2.0))
app.swipeUp()

app.assertNotificationDetails(
identifier: "edu.stanford.spezi.scheduler.notification.task.test-measurement",
title: "Weight Measurement",
Expand Down Expand Up @@ -99,6 +102,9 @@ class TestAppUITests: XCTestCase {
XCTAssert(app.staticTexts["Medication"].firstMatch.waitForExistence(timeout: 2.0))
app.staticTexts["Medication"].firstMatch.tap()

XCTAssert(app.navigationBars.staticTexts["Medication"].waitForExistence(timeout: 2.0))
app.swipeUp()

app.assertNotificationDetails(
title: "Medication",
body: "Take your medication",
Expand Down

0 comments on commit 23cc7f3

Please sign in to comment.