mirror of
https://github.com/bitwarden/android.git
synced 2026-05-22 14:11:47 -05:00
Adding steps to enable screen recording
This commit is contained in:
@@ -19,6 +19,11 @@ class LoginPage(composeTestRule: ComposeTestRule) : Page(composeTestRule){
|
||||
private val continueButton by lazy { getElement("ContinueButton") }
|
||||
private val loginWithMasterPasswordButton by lazy { getElement("LogInWithMasterPasswordButton") }
|
||||
private val regionSelectorButton by lazy { getElement("RegionSelectorDropdown") }
|
||||
private val openSettingsButton by lazy { getElement("AppSettingsButton") }
|
||||
private val otherSettingsButton by lazy { getElement("OtherSettingsButton") }
|
||||
private val allowScreenCaptureToggle by lazy { getElement("AllowScreenCaptureSwitch") }
|
||||
private val goBackButton by lazy { getElement("CloseButton") }
|
||||
|
||||
|
||||
/**
|
||||
* Enters the master password in the password field
|
||||
@@ -44,4 +49,13 @@ class LoginPage(composeTestRule: ComposeTestRule) : Page(composeTestRule){
|
||||
.performClick()
|
||||
return EnvironmentSettingsPage(composeTestRule)
|
||||
}
|
||||
|
||||
fun turnOnScreenRecording() : LoginPage {
|
||||
openSettingsButton.performClick()
|
||||
otherSettingsButton.performClick()
|
||||
allowScreenCaptureToggle.performClick()
|
||||
goBackButton.performClick()
|
||||
goBackButton.performClick()
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ class RealDeviceE2ETests : BaseE2ETest() {
|
||||
fun testVaultLockUnlockFlow() {
|
||||
MainPage(composeTestRule)
|
||||
.startLogin()
|
||||
.turnOnScreenRecording()
|
||||
.openEnvironmentSettings()
|
||||
.setupEnvironment(testData.baseUrl)
|
||||
.performLogin(testData.email, testData.password)
|
||||
|
||||
@@ -326,7 +326,8 @@ private fun LandingScreenContent(
|
||||
icon = rememberVectorPainter(id = BitwardenDrawable.ic_cog),
|
||||
modifier = Modifier
|
||||
.standardHorizontalMargin()
|
||||
.fillMaxWidth(),
|
||||
.fillMaxWidth()
|
||||
.testTag("AppSettingsButton"),
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(height = 12.dp))
|
||||
|
||||
Reference in New Issue
Block a user