Skip to content

Commit ece65e0

Browse files
authored
Merge pull request #481 from AppDevNext/BlancInTestName
Rename screenshots without space included
2 parents 6e78198 + 2f844a2 commit ece65e0

15 files 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)) {

screenshotsToCompare9/StartTest_smokeTestStart-11-AnotherBarActivity-Basic 2-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-11-AnotherBarActivity-Basic2-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-16-StackedBarActivityNegative-Stacked 2-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-16-StackedBarActivityNegative-Stacked2-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-21-PiePolylineChartActivity-Value Lines-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-21-PiePolylineChartActivity-ValueLines-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-22-HalfPieChartActivity-Half Pie-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-22-HalfPieChartActivity-HalfPie-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-23-SpecificPositionsLineChartActivity-Specific positions-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-23-SpecificPositionsLineChartActivity-Specificpositions-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-25-CombinedChartActivity-Combined Chart-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-25-CombinedChartActivity-CombinedChart-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-26-ScatterChartActivity-Scatter Plot-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-26-ScatterChartActivity-ScatterPlot-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-27-BubbleChartActivity-Bubble Chart-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-27-BubbleChartActivity-BubbleChart-1SampleClick.png

File renamed without changes.

screenshotsToCompare9/StartTest_smokeTestStart-29-RadarChartActivity-Radar Chart-1SampleClick.png renamed to screenshotsToCompare9/StartTest_smokeTestStart-29-RadarChartActivity-RadarChart-1SampleClick.png

File renamed without changes.

0 commit comments

Comments
 (0)