mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 18:27:03 +05:30
Add test to ensure new item is added correctly
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
e0e28b5e35
commit
0ccd3b353d
2 changed files with 26 additions and 1 deletions
|
@ -108,6 +108,7 @@ fun ItemAddDialog(
|
|||
value = newItemName,
|
||||
onValueChange = { newItemName = it },
|
||||
label = { Text(text = "Name") },
|
||||
modifier = Modifier.testTag("item_name")
|
||||
)
|
||||
},
|
||||
confirmButton = {
|
||||
|
@ -118,7 +119,8 @@ fun ItemAddDialog(
|
|||
newItemName = TextFieldValue("")
|
||||
hideDialog.invoke()
|
||||
}
|
||||
}
|
||||
},
|
||||
modifier = Modifier.testTag("add_button")
|
||||
) {
|
||||
Text(text = "Add")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue