No need to use CompositionLocalProvider here.
This commit is contained in:
parent
0a14ed67af
commit
3fdc281bd3
1 changed files with 4 additions and 8 deletions
|
|
@ -17,8 +17,6 @@
|
||||||
package io.element.android.features.roomdetails.rolesandpermissions.changeroles
|
package io.element.android.features.roomdetails.rolesandpermissions.changeroles
|
||||||
|
|
||||||
import androidx.activity.ComponentActivity
|
import androidx.activity.ComponentActivity
|
||||||
import androidx.compose.runtime.CompositionLocalProvider
|
|
||||||
import androidx.compose.ui.platform.LocalInspectionMode
|
|
||||||
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
|
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
|
||||||
import androidx.compose.ui.test.junit4.createAndroidComposeRule
|
import androidx.compose.ui.test.junit4.createAndroidComposeRule
|
||||||
import androidx.compose.ui.test.onAllNodesWithText
|
import androidx.compose.ui.test.onAllNodesWithText
|
||||||
|
|
@ -288,11 +286,9 @@ private fun <R : TestRule> AndroidComposeTestRule<R, ComponentActivity>.setChang
|
||||||
onBackPressed: () -> Unit = EnsureNeverCalled(),
|
onBackPressed: () -> Unit = EnsureNeverCalled(),
|
||||||
) {
|
) {
|
||||||
setContent {
|
setContent {
|
||||||
CompositionLocalProvider(LocalInspectionMode provides true) {
|
ChangeRolesView(
|
||||||
ChangeRolesView(
|
state = state,
|
||||||
state = state,
|
onBackPressed = onBackPressed,
|
||||||
onBackPressed = onBackPressed,
|
)
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue