diff --git a/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt b/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt index 7c0a17be2..0a1d4d31d 100644 --- a/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt +++ b/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt @@ -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. [...] \ @@ -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. diff --git a/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/simulator/ContactComposableSimulator.kt b/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/simulator/ContactComposableSimulator.kt index b3c48d390..26da4f5ee 100644 --- a/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/simulator/ContactComposableSimulator.kt +++ b/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/simulator/ContactComposableSimulator.kt @@ -48,7 +48,7 @@ class ContactComposableSimulator( imageResource?.let { image(imageResource) .assertExists() - .assertContentDescriptionContains("Profile Picture") + .assertContentDescriptionContains("Account Box") .assertImageIdentifier(it.identifier) } }