// // PunchPointUITests.swift // suixinkanUITests // import XCTest final class PunchPointUITests: AuthenticatedUITestCase { /// 测试打卡点列表与新建页。 func testPunchPointListAndCreatePage() throws { app = try UITestSession.relaunch(openMenu: "打卡点管理") NavigationAssertions.waitForNavigationTitle("打卡点管理", in: app) let createButton = app.application.buttons.matching(NSPredicate(format: "label CONTAINS '新增'")).firstMatch if createButton.waitForExistence(timeout: 6) { createButton.tap() NavigationAssertions.waitForNavigationTitle("新增打卡点", in: app) } } }