BIT-1570 Make the name value appear in the dialog (#907)

This commit is contained in:
Oleg Semenenko
2024-06-20 17:08:07 +01:00
committed by Álison Fernandes
parent 0f72413379
commit 2127dcbb1d
3 changed files with 36 additions and 3 deletions
@@ -2310,9 +2310,18 @@ class VaultAddEditScreenTest : BaseComposeTest() {
.onNodeWithText("Edit")
.performClick()
composeTestRule
.onAllNodesWithText("TestBoolean")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Name")
.performTextInput("NewTestBooleanName")
.performTextClearance()
composeTestRule
.onNodeWithText("Name")
.performTextInput("Boolean")
composeTestRule
.onNodeWithText("Ok")
@@ -2321,7 +2330,7 @@ class VaultAddEditScreenTest : BaseComposeTest() {
verify {
viewModel.trySendAction(
VaultAddEditAction.Common.CustomFieldValueChange(
VaultAddEditState.Custom.BooleanField("Test ID 1", "NewTestBooleanName", false),
VaultAddEditState.Custom.BooleanField("Test ID 1", "Boolean", false),
),
)
}