Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jul 8, 2024
1 parent 6bb8530 commit 4b69597
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b69597

Please sign in to comment.