在 UI 測試期間禁用動畫

在測試中,你可以通過新增 setUp 來禁用動畫:

    app.launchEnvironment = ["animations": "0"]

app 是 XCUIApplication 的例項。