Skip to content

Commit 8be1ed9

Browse files
PururunRawa
authored andcommitted
Fix instrumental test
1 parent 601f7be commit 8be1ed9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import net.mullvad.mullvadvpn.compose.createEdgeToEdgeComposeExtension
1212
import net.mullvad.mullvadvpn.compose.setContentWithTheme
1313
import net.mullvad.mullvadvpn.compose.state.EditCustomListNameUiState
1414
import net.mullvad.mullvadvpn.compose.test.EDIT_CUSTOM_LIST_DIALOG_INPUT_TEST_TAG
15+
import net.mullvad.mullvadvpn.lib.model.CustomListName
1516
import net.mullvad.mullvadvpn.lib.model.NameAlreadyExists
1617
import net.mullvad.mullvadvpn.lib.model.UnknownCustomListError
1718
import net.mullvad.mullvadvpn.usecase.customlists.RenameError
@@ -46,7 +47,10 @@ class EditCustomListNameDialogTest {
4647
fun givenCustomListExistsShouldShowCustomListExitsErrorText() =
4748
composeExtension.use {
4849
// Arrange
49-
val state = EditCustomListNameUiState(error = RenameError(NameAlreadyExists("name")))
50+
val state =
51+
EditCustomListNameUiState(
52+
error = RenameError(NameAlreadyExists(CustomListName.fromString("name")))
53+
)
5054
setContentWithTheme { EditCustomListNameDialog(state = state) }
5155

5256
// Assert

0 commit comments

Comments
 (0)