Add Private Space features flag check to Settings tests
Adding this flag check since we are putting all the implementations of Private Space features behind this flag. Bug: 326060689 Test: Run presubmits and verify that nothing breaks Change-Id: I2c0e9a1afc3787232425f79d06d4aeba001283ec
This commit is contained in:
@@ -49,7 +49,8 @@ class SecuritySettingsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@RequiresFlagsEnabled(Flags.FLAG_ALLOW_PRIVATE_PROFILE)
|
||||
@RequiresFlagsEnabled(Flags.FLAG_ALLOW_PRIVATE_PROFILE,
|
||||
android.multiuser.Flags.FLAG_ENABLE_PRIVATE_SPACE_FEATURES)
|
||||
fun privateSpace_ifFlagON() {
|
||||
device.assertHasTexts(listOf("Private Space"))
|
||||
}
|
||||
|
||||
@@ -38,7 +38,8 @@ import org.junit.runner.RunWith
|
||||
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
@RequiresFlagsEnabled(Flags.FLAG_ALLOW_PRIVATE_PROFILE)
|
||||
@RequiresFlagsEnabled(Flags.FLAG_ALLOW_PRIVATE_PROFILE,
|
||||
android.multiuser.Flags.FLAG_ENABLE_PRIVATE_SPACE_FEATURES)
|
||||
class PrivateSpaceAuthenticationActivityTest {
|
||||
private val device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user