From 24c753ac20071bf57fddd7d29a93d430340ae8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Mon, 8 Jul 2024 15:13:26 +0200 Subject: [PATCH] Fix broken test --- .../mullvadvpn/compose/dialog/EditCustomListNameDialogTest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog/EditCustomListNameDialogTest.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog/EditCustomListNameDialogTest.kt index 6bca03db695c..102c3c1fb9e6 100644 --- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog/EditCustomListNameDialogTest.kt +++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog/EditCustomListNameDialogTest.kt @@ -109,13 +109,12 @@ class EditCustomListNameDialogTest { // Arrange val mockedUpdateName: (String) -> Unit = mockk(relaxed = true) val inputText = "NEW NAME" - val state = EditCustomListNameUiState() + val state = EditCustomListNameUiState(name = inputText) setContentWithTheme { EditCustomListNameDialog(state = state, updateName = mockedUpdateName) } // Act - onNodeWithTag(EDIT_CUSTOM_LIST_DIALOG_INPUT_TEST_TAG).performTextInput(inputText) onNodeWithText(SAVE_BUTTON_TEXT).performClick() // Assert