Skip to content

Commit 94ad81c

Browse files
committed
Rename screenshots without space included
1 parent 89da455 commit 94ad81c

File tree

1 file changed

+6
-1
lines changed
  • app/src/androidTest/kotlin/info/appdev/chartexample

1 file changed

+6
-1
lines changed

app/src/androidTest/kotlin/info/appdev/chartexample/StartTest.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ class StartTest {
102102

103103
Intents.intended(hasComponent(it.name))
104104
onView(ViewMatchers.isRoot())
105-
.perform(captureToBitmap { bitmap: Bitmap -> bitmap.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-${index}-${it.simpleName}-${contentItem.name}-1SampleClick") })
105+
.perform(captureToBitmap { bitmap: Bitmap ->
106+
bitmap.writeToTestStorage(
107+
"${javaClass.simpleName}_${nameRule.methodName}-${index}-${it.simpleName}-${contentItem.name}-1SampleClick"
108+
.replace(" ", "")
109+
)
110+
})
106111

107112
// Test option menus based on activity type
108113
if (DemoBase::class.java.isAssignableFrom(it)) {

0 commit comments

Comments
 (0)