|
|
@ -20,35 +20,15 @@
|
|
|
|
package org.isoron.uhabits.regression
|
|
|
|
package org.isoron.uhabits.regression
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.test.filters.*
|
|
|
|
import androidx.test.filters.*
|
|
|
|
|
|
|
|
|
|
|
|
import org.isoron.uhabits.*
|
|
|
|
import org.isoron.uhabits.*
|
|
|
|
import org.junit.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.isoron.uhabits.acceptance.steps.CommonSteps.*
|
|
|
|
import org.isoron.uhabits.acceptance.steps.CommonSteps.*
|
|
|
|
import org.isoron.uhabits.acceptance.steps.EditHabitSteps.*
|
|
|
|
|
|
|
|
import org.isoron.uhabits.acceptance.steps.ListHabitsSteps.*
|
|
|
|
|
|
|
|
import org.isoron.uhabits.acceptance.steps.ListHabitsSteps.MenuItem.*
|
|
|
|
|
|
|
|
import org.isoron.uhabits.acceptance.steps.WidgetSteps.clickText
|
|
|
|
|
|
|
|
import org.isoron.uhabits.activities.about.*
|
|
|
|
import org.isoron.uhabits.activities.about.*
|
|
|
|
import org.isoron.uhabits.activities.habits.list.*
|
|
|
|
import org.junit.*
|
|
|
|
import java.lang.Thread.*
|
|
|
|
import java.lang.Thread.*
|
|
|
|
|
|
|
|
|
|
|
|
@LargeTest
|
|
|
|
@LargeTest
|
|
|
|
class SavedStateTest : BaseUserInterfaceTest() {
|
|
|
|
class SavedStateTest : BaseUserInterfaceTest() {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
@Throws(Exception::class)
|
|
|
|
|
|
|
|
fun shouldNotCrashWhenRotatingWeekdayPickerDialog() {
|
|
|
|
|
|
|
|
// https://github.com/iSoron/uhabits/issues/534
|
|
|
|
|
|
|
|
launchApp()
|
|
|
|
|
|
|
|
clickMenu(ADD)
|
|
|
|
|
|
|
|
setReminder()
|
|
|
|
|
|
|
|
clickReminderDays()
|
|
|
|
|
|
|
|
unselectAllDays()
|
|
|
|
|
|
|
|
rotateDevice()
|
|
|
|
|
|
|
|
clickText("Monday")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Make sure that the main activity can be recreated by using
|
|
|
|
* Make sure that the main activity can be recreated by using
|
|
|
|
* BundleSavedState after being destroyed. See bug:
|
|
|
|
* BundleSavedState after being destroyed. See bug:
|
|
|
|