From 043e7a3adbd539348f2e7a5da444203ddde0c1d4 Mon Sep 17 00:00:00 2001 From: kalina559 Date: Wed, 19 Feb 2025 17:22:02 +0100 Subject: [PATCH] Corrected formatting --- .../isoron/uhabits/BaseUserInterfaceTest.kt | 2 +- .../uhabits/acceptance/steps/CommonSteps.kt | 24 ------------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/uhabits-android/src/androidTest/java/org/isoron/uhabits/BaseUserInterfaceTest.kt b/uhabits-android/src/androidTest/java/org/isoron/uhabits/BaseUserInterfaceTest.kt index 9f87476aa..01c1d028c 100644 --- a/uhabits-android/src/androidTest/java/org/isoron/uhabits/BaseUserInterfaceTest.kt +++ b/uhabits-android/src/androidTest/java/org/isoron/uhabits/BaseUserInterfaceTest.kt @@ -101,7 +101,7 @@ open class BaseUserInterfaceTest { device.setOrientationNatural() } - protected fun addHabitToList(name: String){ + protected fun addHabitToList(name: String) { val h1 = fixtures.createEmptyHabit() h1.name = name habitList.update(h1) diff --git a/uhabits-android/src/androidTest/java/org/isoron/uhabits/acceptance/steps/CommonSteps.kt b/uhabits-android/src/androidTest/java/org/isoron/uhabits/acceptance/steps/CommonSteps.kt index f9642cbfc..429899dae 100644 --- a/uhabits-android/src/androidTest/java/org/isoron/uhabits/acceptance/steps/CommonSteps.kt +++ b/uhabits-android/src/androidTest/java/org/isoron/uhabits/acceptance/steps/CommonSteps.kt @@ -191,35 +191,11 @@ object CommonSteps : BaseUserInterfaceTest() { } fun changeFrequencyToMonthly(habitName: String) { - var startTime: Long - var endTime: Long - - startTime = System.nanoTime() clickText(habitName) - endTime = System.nanoTime() - println("clickText() took ${(endTime - startTime)/1000000} milliseconds") - - startTime = System.nanoTime() Espresso.onView(ViewMatchers.withId(R.id.action_edit_habit)).perform(ViewActions.click()) - endTime = System.nanoTime() - println("onView() took ${(endTime - startTime)/1000000} milliseconds") - - startTime = System.nanoTime() EditHabitSteps.pickMonthFrequency() - endTime = System.nanoTime() - println("pickMonthFrequency() took ${(endTime - startTime)/1000000} milliseconds") - - startTime = System.nanoTime() EditHabitSteps.clickSave() - endTime = System.nanoTime() - println("clickSave() took ${(endTime - startTime)/1000000} milliseconds") - - startTime = System.nanoTime() pressBack() - endTime = System.nanoTime() - println("pressBack() took ${(endTime - startTime)/1000000} milliseconds") - - } enum class Screen {