Merge pull request #4960 from element-hq/feature/bma/minApiLevel
Update min api level to 33 for Element enterprise
This commit is contained in:
commit
225a775d3e
14 changed files with 93 additions and 67 deletions
|
|
@ -35,12 +35,14 @@ import org.junit.Rule
|
|||
import org.junit.Test
|
||||
import org.junit.rules.TestRule
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class RoomListViewTest {
|
||||
@get:Rule
|
||||
val rule = createAndroidComposeRule<ComponentActivity>()
|
||||
|
||||
@Config(qualifiers = "h1024dp")
|
||||
@Test
|
||||
fun `displaying the view automatically sends a couple of UpdateVisibleRangeEvents`() {
|
||||
val eventsRecorder = EventsRecorder<RoomListEvents>()
|
||||
|
|
@ -54,7 +56,7 @@ class RoomListViewTest {
|
|||
eventsRecorder.assertList(
|
||||
listOf(
|
||||
RoomListEvents.UpdateVisibleRange(IntRange.EMPTY),
|
||||
RoomListEvents.UpdateVisibleRange(0..2),
|
||||
RoomListEvents.UpdateVisibleRange(0..5),
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class AdvancedSettingsViewTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Config(qualifiers = "h640dp")
|
||||
@Config(qualifiers = "h1024dp")
|
||||
fun `clicking on timeline media preview emits the expected event`() {
|
||||
val eventsRecorder = EventsRecorder<AdvancedSettingsEvents>()
|
||||
rule.setAdvancedSettingsView(
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class SecurityAndPrivacyViewTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Config(qualifiers = "h640dp")
|
||||
@Config(qualifiers = "h1024dp")
|
||||
fun `click on room visibility item emits the expected event`() {
|
||||
val recorder = EventsRecorder<SecurityAndPrivacyEvents>()
|
||||
val state = aSecurityAndPrivacyState(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue