1
0
Fork 0
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:
Konstantin Ivanov 2024-06-14 11:15:05 +02:00 committed by GitHub
parent f4d0183998
commit 6a0382f93e
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -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),

View file

@ -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(