Skip to content

Commit

Permalink
add description for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaiqueoliveira committed May 28, 2023
1 parent a8e38ac commit 782f8c0
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,12 @@ public class StorePresenterTest {
presenter.userActions(AddItem("TSHIRT"))
presenter.userActions(AddItem("MUG"))

repeat(3) {
awaitItem()
}
repeat(3) { awaitItem() }

val item = awaitItem()

assertTrue(
message = "",
message = "acceptance criteria for single item",
actual = item.totalToPay.contains("32.5")
)
}
Expand All @@ -125,14 +123,12 @@ public class StorePresenterTest {
presenter.userActions(AddItem("VOUCHER"))
presenter.userActions(AddItem("TSHIRT"))

repeat(5) {
awaitItem()
}
repeat(5) { awaitItem() }

val item = awaitItem()

assertTrue(
message = "",
message = "check acceptance criteria for multiples tshirt",
actual = item.totalToPay.contains("81.0")
)
}
Expand All @@ -157,14 +153,12 @@ public class StorePresenterTest {
presenter.userActions(AddItem("TSHIRT"))
presenter.userActions(AddItem("TSHIRT"))

repeat(7) {
awaitItem()
}
repeat(7) { awaitItem() }

val item = awaitItem()

assertTrue(
message = "",
message = "check acceptance criteria for multiples voucher",
actual = item.totalToPay.contains("74.5")
)
}
Expand Down

0 comments on commit 782f8c0

Please sign in to comment.