Skip to content

Commit

Permalink
Disable image region selection tests.
Browse files Browse the repository at this point in the history
These tests can't correctly pass on Robolectric until #1611 is fixed, so
disabling them for the time being to avoid the image loading flake
happening on CI (but not locally). Note that chances are a fix will
still be needed for the flake, but that can be addressed later.
  • Loading branch information
BenHenning committed Jan 8, 2021
1 parent 8d4eb87 commit 5926861
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ class StateFragmentTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun testStateFragment_loadImageRegion_submitButtonDisabled() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
Expand All @@ -595,7 +596,7 @@ class StateFragmentTest {

@Test
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun loadImageRegion_defaultRegionClick_defaultRegionClicked_submitButtonDisabled() {
fun testStateFragment_loadImageRegion_defaultRegionClick_defRegionClicked_submitButtonDisabled() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
waitForImageViewInteractionToFullyLoad()
Expand All @@ -608,6 +609,7 @@ class StateFragmentTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun testStateFragment_loadImageRegion_clickedRegion6_region6Clicked_submitButtonEnabled() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
Expand All @@ -621,6 +623,7 @@ class StateFragmentTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun testStateFragment_loadImageRegion_clickedRegion6_region6Clicked_correctFeedback() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
Expand All @@ -639,6 +642,7 @@ class StateFragmentTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun testStateFragment_loadImageRegion_clickedRegion6_region6Clicked_correctAnswer() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
Expand All @@ -657,6 +661,7 @@ class StateFragmentTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun testStateFragment_loadImageRegion_clickedRegion6_region6Clicked_continueButtonIsDisplayed() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
Expand All @@ -671,7 +676,8 @@ class StateFragmentTest {
}

@Test
fun loadImageRegion_clickRegion6_clickedRegion5_region5Clicked_correctFeedback() {
@RunOn(TestPlatform.ESPRESSO) // TODO(#1611): Enable for Robolectric.
fun testStateFragment_loadImageRegion_clickRegion6_clickedRegion5_clickRegion5_correctFeedback() {
launchForExploration(TEST_EXPLORATION_ID_5).use {
startPlayingExploration()
waitForImageViewInteractionToFullyLoad()
Expand Down

0 comments on commit 5926861

Please sign in to comment.