File tree 1 file changed +5
-1
lines changed
android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/dialog
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import net.mullvad.mullvadvpn.compose.createEdgeToEdgeComposeExtension
12
12
import net.mullvad.mullvadvpn.compose.setContentWithTheme
13
13
import net.mullvad.mullvadvpn.compose.state.EditCustomListNameUiState
14
14
import net.mullvad.mullvadvpn.compose.test.EDIT_CUSTOM_LIST_DIALOG_INPUT_TEST_TAG
15
+ import net.mullvad.mullvadvpn.lib.model.CustomListName
15
16
import net.mullvad.mullvadvpn.lib.model.NameAlreadyExists
16
17
import net.mullvad.mullvadvpn.lib.model.UnknownCustomListError
17
18
import net.mullvad.mullvadvpn.usecase.customlists.RenameError
@@ -46,7 +47,10 @@ class EditCustomListNameDialogTest {
46
47
fun givenCustomListExistsShouldShowCustomListExitsErrorText () =
47
48
composeExtension.use {
48
49
// Arrange
49
- val state = EditCustomListNameUiState (error = RenameError (NameAlreadyExists (" name" )))
50
+ val state =
51
+ EditCustomListNameUiState (
52
+ error = RenameError (NameAlreadyExists (CustomListName .fromString(" name" )))
53
+ )
50
54
setContentWithTheme { EditCustomListNameDialog (state = state) }
51
55
52
56
// Assert
You can’t perform that action at this time.
0 commit comments