Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mai-LinhC committed Jun 2, 2024
1 parent c5834ca commit 5c2691a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,17 @@ class Epic2Test : TestCase(kaspressoBuilder = Kaspresso.Builder.withComposeSuppo
onAllNodesWithText("Receipt-1-name").apply {
fetchSemanticsNodes().forEachIndexed { i, _ -> get(i).assertIsDisplayed() }
}
onNodeWithTag("true-r1").performClick()
onNodeWithTag("receiptItem-true-r1").performClick()

// check that the receipt is correct and change its title
onNodeWithTag("titleField").assertIsDisplayed().performClick().performTextInput("-changed")
onNodeWithTag("saveButton").performScrollTo().assertIsDisplayed().performClick()
onNodeWithTag("ReceiptList").assertIsDisplayed()
onNodeWithText("Receipt-1-name-changed").assertIsDisplayed()

// (shouldn't have access to budget and balance but not implemented yet)
// (since i'm a member, i shouldn't have access to budget and balance : not implemented yet)

// add a receipt -- removed because I can't add a picture
// add a receipt -- removed this part of the test because adding a picture couldn't be mocked
/*
onNodeWithTag("createReceipt").assertIsDisplayed().performClick()
onNodeWithTag("titleField").performClick().performTextInput("Receipt-2-name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private fun ReceiptItem(receipt: Receipt, viewModel: ReceiptListViewModel, mine:
modifier =
Modifier.clickable { viewModel.onReceiptClick(receipt) }
.fillMaxWidth()
.testTag("$mine-${receipt.uid}"),
.testTag("receiptItem-$mine-${receipt.uid}"),
headlineContent = {
Text(modifier = Modifier.testTag("receiptNameText"), text = receipt.title)
},
Expand Down

0 comments on commit 5c2691a

Please sign in to comment.