Corrected formatting

pull/2110/head
kalina559 7 months ago
parent d1047ca992
commit 043e7a3adb

@ -101,7 +101,7 @@ open class BaseUserInterfaceTest {
device.setOrientationNatural() device.setOrientationNatural()
} }
protected fun addHabitToList(name: String){ protected fun addHabitToList(name: String) {
val h1 = fixtures.createEmptyHabit() val h1 = fixtures.createEmptyHabit()
h1.name = name h1.name = name
habitList.update(h1) habitList.update(h1)

@ -191,35 +191,11 @@ object CommonSteps : BaseUserInterfaceTest() {
} }
fun changeFrequencyToMonthly(habitName: String) { fun changeFrequencyToMonthly(habitName: String) {
var startTime: Long
var endTime: Long
startTime = System.nanoTime()
clickText(habitName) 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()) 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() EditHabitSteps.pickMonthFrequency()
endTime = System.nanoTime()
println("pickMonthFrequency() took ${(endTime - startTime)/1000000} milliseconds")
startTime = System.nanoTime()
EditHabitSteps.clickSave() EditHabitSteps.clickSave()
endTime = System.nanoTime()
println("clickSave() took ${(endTime - startTime)/1000000} milliseconds")
startTime = System.nanoTime()
pressBack() pressBack()
endTime = System.nanoTime()
println("pressBack() took ${(endTime - startTime)/1000000} milliseconds")
} }
enum class Screen { enum class Screen {

Loading…
Cancel
Save