Skip to content

Commit

Permalink
Corrected formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kalina559 committed Feb 19, 2025
1 parent d1047ca commit 043e7a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 043e7a3

Please sign in to comment.