mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2577 Tests | Fix sets test (#1295)
This commit is contained in:
parent
f4d0183998
commit
6a0382f93e
2 changed files with 8 additions and 2 deletions
|
@ -21,6 +21,7 @@ import com.anytypeio.anytype.presentation.sets.subscription.DefaultDataViewSubsc
|
|||
import com.anytypeio.anytype.test_utils.MockDataFactory
|
||||
import kotlin.test.assertIs
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.test.advanceTimeBy
|
||||
import kotlinx.coroutines.test.advanceUntilIdle
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import net.lachlanmckee.timberjunit.TimberTestRule
|
||||
|
@ -185,7 +186,7 @@ class CollectionCreateAndAddObjectTest: ObjectSetViewModelTestSetup() {
|
|||
templateId = newObjectTemplate
|
||||
)
|
||||
|
||||
advanceUntilIdle()
|
||||
advanceTimeBy(300)
|
||||
val spaceId = SpaceId(mockObjectCollection.spaceId)
|
||||
val command = Command.CreateObject(
|
||||
prefilled = mapOf(filters[0].relation to filters[0].value, filters[1].relation to filters[1].value),
|
||||
|
|
|
@ -92,7 +92,12 @@ class ParseWidgetTest {
|
|||
)
|
||||
|
||||
val widgetContent = Block.Content.Widget(
|
||||
layout = Block.Content.Widget.Layout.values().random()
|
||||
layout = listOf(
|
||||
Block.Content.Widget.Layout.TREE,
|
||||
Block.Content.Widget.Layout.LIST,
|
||||
Block.Content.Widget.Layout.LINK,
|
||||
Block.Content.Widget.Layout.COMPACT_LIST
|
||||
).random()
|
||||
)
|
||||
|
||||
val firstWidgetLink = StubLinkToObjectBlock(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue