This reverts commit fd467c2451.
This commit is contained in:
parent
b751e41e80
commit
ca695ca077
1247 changed files with 1940 additions and 2265 deletions
|
|
@ -38,7 +38,5 @@ class ColorTestPreview(
|
|||
)
|
||||
}
|
||||
|
||||
override val name: String = showkaseBrowserColor.colorName
|
||||
|
||||
override fun toString(): String = "Color_${showkaseBrowserColor.colorGroup}_${showkaseBrowserColor.colorName}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,5 @@ class ComponentTestPreview(
|
|||
@Composable
|
||||
override fun Content() = showkaseBrowserComponent.component()
|
||||
|
||||
override val name: String = showkaseBrowserComponent.componentName
|
||||
|
||||
override fun toString(): String = showkaseBrowserComponent.componentKey
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ import com.airbnb.android.showkase.models.Showkase
|
|||
import com.android.ide.common.rendering.api.SessionParams
|
||||
import com.google.testing.junit.testparameterinjector.TestParameter
|
||||
import com.google.testing.junit.testparameterinjector.TestParameterInjector
|
||||
import io.element.android.libraries.designsystem.preview.NIGHT_MODE_NAME
|
||||
import io.element.android.libraries.theme.ElementTheme
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
|
|
@ -60,11 +59,7 @@ class ScreenshotTest {
|
|||
object PreviewProvider : TestParameter.TestParameterValuesProvider {
|
||||
override fun provideValues(): List<TestPreview> {
|
||||
val metadata = Showkase.getMetadata()
|
||||
val components = metadata.componentList.filterNot {
|
||||
// skip all previews that have "dark" in the name because
|
||||
// all previews get a dark mode screenshot automatically now
|
||||
it.componentKey.contains("dark", true)
|
||||
}.map(::ComponentTestPreview)
|
||||
val components = metadata.componentList.map(::ComponentTestPreview)
|
||||
val colors = metadata.colorList.map(::ColorTestPreview)
|
||||
val typography = metadata.typographyList.map(::TypographyTestPreview)
|
||||
|
||||
|
|
@ -100,10 +95,6 @@ class ScreenshotTest {
|
|||
),
|
||||
LocalConfiguration provides Configuration().apply {
|
||||
setLocales(LocaleList(localeStr.toLocale()))
|
||||
// Dark mode previews have name "N" so their component is subfixed with "- N"
|
||||
if (componentTestPreview.name.contains("- $NIGHT_MODE_NAME")){
|
||||
uiMode = Configuration.UI_MODE_NIGHT_YES
|
||||
}
|
||||
},
|
||||
// Needed so that UI that uses it don't crash during screenshot tests
|
||||
LocalOnBackPressedDispatcherOwner provides object : OnBackPressedDispatcherOwner {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,4 @@ import androidx.compose.runtime.Composable
|
|||
interface TestPreview {
|
||||
@Composable
|
||||
fun Content()
|
||||
|
||||
val name: String
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,5 @@ class TypographyTestPreview(
|
|||
)
|
||||
}
|
||||
|
||||
override val name: String = showkaseBrowserTypography.typographyName
|
||||
|
||||
override fun toString(): String = "Typo_${showkaseBrowserTypography.typographyGroup}_${showkaseBrowserTypography.typographyName}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:940c3ac11da74a6eb734085c468050040c2d31056b6d8de516e49ddb0058c9ee
|
||||
size 23412
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2e63fac552bdd0f56d21c55162f22f375328ce4376c8c7f0211d0bb5a5177e08
|
||||
size 22608
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d9f420e553a0006b8b9823763bd1cb9790a4e681b058618f4ec4bbf709c43817
|
||||
size 33552
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:93fd8c4eac3323e8bf239308cdfbe0dbcedef266a83cb880820f2ca8f6da889e
|
||||
size 33418
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b57a2569876d7e3a6440ce0312be46bf7b2db22d0053b8be5abf7879a6a7ede2
|
||||
size 46726
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e03719f4dbb4e4316b08b2109fab50e6b3231ba5ae40c09d9d1ec4e6e6234154
|
||||
size 45053
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:504a8fdf5e67a430e37d7efd1a990f1f506fe73cb1cf556ef91184624860591d
|
||||
size 86041
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58a8b77f2b471b017d350333cdae6e92ef04d673aaecb0f611f43750803c7824
|
||||
size 25103
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:94544aca05cff7750dd13fb6df3e785789621062db53938987c02d3be9b346c2
|
||||
size 24542
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2869cf8af38a526ea7b5b3e387c7c01924905635dd03a049f2679e48c6e1c522
|
||||
size 45289
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9c1e29ad621b3056562c71ff8b28b898b5aa972899a4ebeaef7fdd835ec128c4
|
||||
size 10308
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e7642a1adb1faec60a301ee86bb34558ea71d15f4fbd3d5ddd5d1661249b725a
|
||||
size 25759
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:72fba69b8cdf9b3114719e3c754035615e4ef29e56f786c6919fe0c278e1881e
|
||||
size 9917
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4e9cdc750403f95814f728783f734444a67a81a3301927964ea2181f442fc29a
|
||||
size 25061
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4233e67a2f27e3e73924b9af5f43d0e877a397f4a2ee3f8d436a713e1d2b3c0c
|
||||
size 28738
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:69b2702985d50fedbb720e86eef63c2734e328d8537c6a8f644fcf75c7e710a8
|
||||
size 32883
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76681a4959008b8646273424cd50566d7c868620938e07849da596ccd3172781
|
||||
size 33020
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0052281199753556fd2d8ed411360ee15e5019e2ddd3ec2b1a9695c81be3a233
|
||||
size 14402
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:57878214b3949c4eaa782f763095e9e8234a979e0e7fe83fcf1e5083bfb32bf0
|
||||
size 28878
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:95ba31d1eab6e9f258867fc7b91af062625d8835d895c02fbe6a498988356da3
|
||||
size 28363
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f6627a53b1bf0cd2ec25b8f46dc6237ce1711775ce08739dd28d261b3d076625
|
||||
size 32708
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b91181006b72ce5ba2ac80ec42e9ea4b247360633fecac7a2e7fc2f8cfe18251
|
||||
size 32846
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5cf5bf3a75bce64c80e5938c9429118a6fe59ef22ff405ea3a995302d13e52b
|
||||
size 13893
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b144d95df7c02208decdf73acc0a326b0134fd942675fb219da4cab3355e2592
|
||||
size 28520
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8033b2e37b9d335f3e6120f1ae46aeb8ad114b4bd6ba665b74c6281a2aeb905a
|
||||
size 6259
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7f83ded5e18878925de37a852facab7176d3eb399eca8c32779218ac720f1bab
|
||||
size 20577
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:050a3377cd74be85238b78bbe9de6afac59013c7398b5d7efc63a4d797a63e66
|
||||
size 29670
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:277844f668695b4e9ddf3185bafcc02ac37f230ee03af0bdd9d97de538304e0e
|
||||
size 32227
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4256d996b5432de8ef1ebf4f54907b60a514bb8a0e8deed9b6244540b6431439
|
||||
size 11752
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a8170a2f0d2d92c05da58fd424755b24060b353670c99bda57db74a0a9265fcf
|
||||
size 13469
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0fdd8e4649e195585d13391a5463d25c43dcfeb7642a57033678ccf490d8e0c4
|
||||
size 19345
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:120a473dff5819a07eb159bfc2435f5097fc1da3cef053b068d7af0b6820529f
|
||||
size 28482
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c4c9108a8d7a2d7fa415ad57d0dd10c64da1fb1747d543d0a95ec09861aafd99
|
||||
size 31073
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:12811bca38c1d8b2fd329536fd7b6cbfc6b51c240da371e3fa5679666ee9a151
|
||||
size 10548
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:88f2ac66ef601cb6e01b7e32dbc8f7a17611eb525d260e8352f481bc3f52a1d2
|
||||
size 12254
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6ec7c0893d93a5b1c6b42e13826ac9978363d7acc0943e66db0312552b71d8db
|
||||
size 143797
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d92879626836d2e4378a985a972dced835609c461f5e89a5ecf294d78bda103d
|
||||
size 146493
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ffdebd1981c4e28216f4b16b39180d93d37358bef3a4ecf9cd58aeb9cbac5267
|
||||
size 143680
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue