Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Nov 19, 2024
1 parent c84e748 commit d184b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object ContactFactory {
givenName = "Leland",
familyName = "Stanford"
),
image = ImageResource.Vector(Icons.Default.AccountBox),
image = ImageResource.Vector(Icons.Default.AccountBox, StringResource("Account Box")),
title = StringResource("University Founder"),
description = StringResource("""
Amasa Leland Stanford (March 9, 1824 – June 21, 1893) was an American industrialist and politician. [...] \
Expand Down Expand Up @@ -49,7 +49,7 @@ He and his wife Jane were also the founders of Stanford University, which they n
givenName = "Paul",
familyName = "Schmiedmayer"
),
image = ImageResource.Vector(Icons.Default.AccountBox),
image = ImageResource.Vector(Icons.Default.AccountBox, StringResource("Account Box")),
title = StringResource("A Title"),
description = StringResource("""
This is a description of a contact that will be displayed. It might even be longer than what has to be displayed in the contact card.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ContactComposableSimulator(
imageResource?.let {
image(imageResource)
.assertExists()
.assertContentDescriptionContains("Profile Picture")
.assertContentDescriptionContains("Account Box")
.assertImageIdentifier(it.identifier)
}
}
Expand Down

0 comments on commit d184b64

Please sign in to comment.