Group design components in Showkase for the Compound team (#375)

* Screenshot tests changes:

    - Group components for Showkase.
    - Set special Paparazzi config for scrolling screens using non null `Preview.heightDp`.
    - Add merged theme preview with `ElementThemedPreview` component.
This commit is contained in:
Jorge Martin Espinosa 2023-05-02 18:13:35 +02:00 committed by GitHub
parent 977c87c141
commit 921fb55220
413 changed files with 1451 additions and 1079 deletions

View file

@ -17,8 +17,13 @@
package io.element.android.tests.uitests
import android.app.Activity
import android.content.Intent
import com.airbnb.android.showkase.models.Showkase
import com.airbnb.android.showkase.ui.ShowkaseBrowserActivity
fun openShowkase(activity: Activity) {
activity.startActivity(Showkase.getBrowserIntent(activity))
val intent = Intent(activity, ShowkaseBrowserActivity::class.java)
intent.putExtra("SHOWKASE_ROOT_MODULE",
"io.element.android.libraries.designsystem.showkase.DesignSystemShowkaseRootModule")
activity.startActivity(intent)
}