Shorter screenshot filename.
This commit is contained in:
parent
d2c7cb6020
commit
4a01494d1e
1 changed files with 11 additions and 0 deletions
|
|
@ -28,4 +28,15 @@ class ComponentTestPreview(
|
|||
override val name: String = showkaseBrowserComponent.componentName
|
||||
|
||||
override fun toString(): String = showkaseBrowserComponent.componentKey
|
||||
// Strip common package beginning
|
||||
.replace("io.element.android.features.", "f.")
|
||||
.replace("io.element.android.libraries.", "l.")
|
||||
.replace("io.element.android.", "")
|
||||
// Reduce default group (if present)
|
||||
.replace("_DefaultGroup_", "_")
|
||||
// No need to include `Preview` suffix of function name
|
||||
.replace("Preview_", "_")
|
||||
// Also for preview annotated with @ElementPreview
|
||||
.replace("Preview-", "-")
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue