mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-13 07:10:28 +00:00
Bug 1865318 - Fix review checker store tests
This commit is contained in:
parent
3dbaed80db
commit
2c0bf2acdb
@ -13,7 +13,6 @@ import mozilla.components.support.test.libstate.ext.waitUntilIdle
|
||||
import mozilla.components.support.test.middleware.CaptureActionsMiddleware
|
||||
import mozilla.components.support.test.rule.MainCoroutineRule
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Ignore
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.mozilla.fenix.components.AppStore
|
||||
@ -254,7 +253,6 @@ class ReviewQualityCheckStoreTest {
|
||||
assertEquals(expected, tested.state)
|
||||
}
|
||||
|
||||
@Ignore("Flaky: https://bugzilla.mozilla.org/show_bug.cgi?id=1865318")
|
||||
@Test
|
||||
fun `GIVEN the user has opted in the feature WHEN the user expands settings THEN state should reflect that`() =
|
||||
runTest {
|
||||
@ -276,6 +274,7 @@ class ReviewQualityCheckStoreTest {
|
||||
tested.dispatch(ReviewQualityCheckAction.ExpandCollapseSettings).joinBlocking()
|
||||
tested.waitUntilIdle()
|
||||
dispatcher.scheduler.advanceUntilIdle()
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
val expected = ReviewQualityCheckState.OptedIn(
|
||||
productRecommendationsPreference = false,
|
||||
@ -288,7 +287,6 @@ class ReviewQualityCheckStoreTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("Flaky: https://bugzilla.mozilla.org/show_bug.cgi?id=1865318")
|
||||
@Test
|
||||
fun `GIVEN the user has opted in the feature WHEN the user collapses settings THEN state should reflect that`() =
|
||||
runTest {
|
||||
@ -319,6 +317,7 @@ class ReviewQualityCheckStoreTest {
|
||||
tested.dispatch(ReviewQualityCheckAction.ExpandCollapseSettings).joinBlocking()
|
||||
tested.waitUntilIdle()
|
||||
dispatcher.scheduler.advanceUntilIdle()
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
val expected = ReviewQualityCheckState.OptedIn(
|
||||
productRecommendationsPreference = false,
|
||||
@ -331,7 +330,6 @@ class ReviewQualityCheckStoreTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("Flaky: https://bugzilla.mozilla.org/show_bug.cgi?id=1865318")
|
||||
@Test
|
||||
fun `GIVEN the user has opted in the feature WHEN the user expands info card THEN state should reflect that`() =
|
||||
runTest {
|
||||
@ -353,6 +351,7 @@ class ReviewQualityCheckStoreTest {
|
||||
tested.dispatch(ReviewQualityCheckAction.ExpandCollapseInfo).joinBlocking()
|
||||
tested.waitUntilIdle()
|
||||
dispatcher.scheduler.advanceUntilIdle()
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
val expected = ReviewQualityCheckState.OptedIn(
|
||||
productRecommendationsPreference = false,
|
||||
@ -365,7 +364,6 @@ class ReviewQualityCheckStoreTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("Flaky: https://bugzilla.mozilla.org/show_bug.cgi?id=1865318")
|
||||
@Test
|
||||
fun `GIVEN the user has opted in the feature WHEN the user collapses info card THEN state should reflect that`() =
|
||||
runTest {
|
||||
@ -396,6 +394,7 @@ class ReviewQualityCheckStoreTest {
|
||||
tested.dispatch(ReviewQualityCheckAction.ExpandCollapseInfo).joinBlocking()
|
||||
tested.waitUntilIdle()
|
||||
dispatcher.scheduler.advanceUntilIdle()
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
val expected = ReviewQualityCheckState.OptedIn(
|
||||
productRecommendationsPreference = false,
|
||||
@ -408,7 +407,6 @@ class ReviewQualityCheckStoreTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("Flaky: https://bugzilla.mozilla.org/show_bug.cgi?id=1865318")
|
||||
@Test
|
||||
fun `GIVEN the user has opted in the feature WHEN the user expands highlights card THEN state should reflect that`() =
|
||||
runTest {
|
||||
@ -431,6 +429,7 @@ class ReviewQualityCheckStoreTest {
|
||||
tested.dispatch(ReviewQualityCheckAction.ExpandCollapseHighlights).joinBlocking()
|
||||
tested.waitUntilIdle()
|
||||
dispatcher.scheduler.advanceUntilIdle()
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
val expected = ReviewQualityCheckState.OptedIn(
|
||||
productRecommendationsPreference = false,
|
||||
@ -444,7 +443,6 @@ class ReviewQualityCheckStoreTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("Flaky: https://bugzilla.mozilla.org/show_bug.cgi?id=1865318")
|
||||
@Test
|
||||
fun `GIVEN the user has opted in the feature WHEN the user collapses highlights card THEN state should reflect that`() =
|
||||
runTest {
|
||||
@ -475,6 +473,7 @@ class ReviewQualityCheckStoreTest {
|
||||
tested.dispatch(ReviewQualityCheckAction.ExpandCollapseHighlights).joinBlocking()
|
||||
tested.waitUntilIdle()
|
||||
dispatcher.scheduler.advanceUntilIdle()
|
||||
appStore.waitUntilIdle()
|
||||
|
||||
val expected = ReviewQualityCheckState.OptedIn(
|
||||
productRecommendationsPreference = false,
|
||||
|
Loading…
Reference in New Issue
Block a user