Skip to content

Commit 4b69597

Browse files
committed
Fix broken test
1 parent 6bb8530 commit 4b69597

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog/EditCustomListNameDialogTest.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ class EditCustomListNameDialogTest {
109109
// Arrange
110110
val mockedUpdateName: (String) -> Unit = mockk(relaxed = true)
111111
val inputText = "NEW NAME"
112-
val state = EditCustomListNameUiState()
112+
val state = EditCustomListNameUiState(name = inputText)
113113
setContentWithTheme {
114114
EditCustomListNameDialog(state = state, updateName = mockedUpdateName)
115115
}
116116

117117
// Act
118-
onNodeWithTag(EDIT_CUSTOM_LIST_DIALOG_INPUT_TEST_TAG).performTextInput(inputText)
119118
onNodeWithText(SAVE_BUTTON_TEXT).performClick()
120119

121120
// Assert

0 commit comments

Comments
 (0)