mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
GitHub Actions: Large tests
This commit is contained in:
@@ -84,7 +84,6 @@ dependencies {
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:$espressoVersion")
|
||||
androidTestImplementation("com.google.dagger:dagger:$daggerVersion")
|
||||
androidTestImplementation("com.linkedin.dexmaker:dexmaker-mockito:2.28.1")
|
||||
androidTestImplementation("com.linkedin.testbutler:test-butler-library:2.2.1")
|
||||
androidTestImplementation("io.ktor:ktor-client-mock:$ktorVersion")
|
||||
androidTestImplementation("io.ktor:ktor-jackson:$ktorVersion")
|
||||
androidTestImplementation("androidx.annotation:annotation:1.2.0")
|
||||
|
||||
@@ -24,7 +24,6 @@ import android.content.Intent
|
||||
import androidx.test.core.app.ApplicationProvider
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.uiautomator.UiDevice
|
||||
import com.linkedin.android.testbutler.TestButler
|
||||
import org.isoron.uhabits.core.models.HabitList
|
||||
import org.isoron.uhabits.core.models.PaletteColor
|
||||
import org.isoron.uhabits.core.preferences.Preferences
|
||||
@@ -44,8 +43,6 @@ open class BaseUserInterfaceTest {
|
||||
@Throws(Exception::class)
|
||||
fun setUp() {
|
||||
device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
|
||||
TestButler.setup(ApplicationProvider.getApplicationContext())
|
||||
TestButler.verifyAnimationsDisabled(ApplicationProvider.getApplicationContext())
|
||||
val app =
|
||||
ApplicationProvider.getApplicationContext<Context>().applicationContext as HabitsApplication
|
||||
component = app.component
|
||||
@@ -60,7 +57,6 @@ open class BaseUserInterfaceTest {
|
||||
@Throws(Exception::class)
|
||||
fun tearDown() {
|
||||
for (i in 0..9) device.pressBack()
|
||||
TestButler.teardown(ApplicationProvider.getApplicationContext())
|
||||
}
|
||||
|
||||
@Throws(Exception::class)
|
||||
|
||||
@@ -28,11 +28,13 @@ import org.isoron.uhabits.acceptance.steps.ListHabitsSteps.MenuItem.ABOUT
|
||||
import org.isoron.uhabits.acceptance.steps.ListHabitsSteps.MenuItem.HELP
|
||||
import org.isoron.uhabits.acceptance.steps.ListHabitsSteps.MenuItem.SETTINGS
|
||||
import org.isoron.uhabits.acceptance.steps.ListHabitsSteps.clickMenu
|
||||
import org.junit.Ignore
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
@LargeTest
|
||||
@Ignore("Fails on GitHub Actions")
|
||||
class LinksTest : BaseUserInterfaceTest() {
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
|
||||
@@ -27,9 +27,11 @@ import org.isoron.uhabits.acceptance.steps.CommonSteps.verifyDisplaysText
|
||||
import org.isoron.uhabits.acceptance.steps.WidgetSteps.clickCheckmarkWidget
|
||||
import org.isoron.uhabits.acceptance.steps.WidgetSteps.dragCheckmarkWidgetToHomeScreen
|
||||
import org.isoron.uhabits.acceptance.steps.WidgetSteps.verifyCheckmarkWidgetIsShown
|
||||
import org.junit.Ignore
|
||||
import org.junit.Test
|
||||
|
||||
@LargeTest
|
||||
@Ignore("Flaky")
|
||||
class WidgetTest : BaseUserInterfaceTest() {
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user