mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(sidecar): fail the build if maestro renames the call the fact comes from
This commit is contained in:
1 parent
a38b4a8047
commit
528b2c7756
1 file changed
+16
@@ -130,6 +130,22 @@ class SecureFactsTest {
|
|||||||
assertEquals(listTree, annotated)
|
assertEquals(listTree, annotated)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The fact is read through a call maestro keeps private, so a maestro
|
||||||
|
// upgrade that renames it would leave every typed value redacted again with
|
||||||
|
// nothing failing. This fails the build instead.
|
||||||
|
@Test fun maestroStillExposesTheCallTheDeviceXmlComesFrom() {
|
||||||
|
val call = maestro.drivers.AndroidDriver::class.java
|
||||||
|
.getDeclaredMethod(
|
||||||
|
"callViewHierarchy",
|
||||||
|
Int::class.javaPrimitiveType,
|
||||||
|
)
|
||||||
|
|
||||||
|
assertEquals(
|
||||||
|
String::class.java,
|
||||||
|
call.returnType.getMethod("getHierarchy").returnType,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// The rest of the tree has to survive the annotation: it is the same tree
|
// The rest of the tree has to survive the annotation: it is the same tree
|
||||||
// every selector, bounds read and screen classification runs against.
|
// every selector, bounds read and screen classification runs against.
|
||||||
@Test fun theTreeIsOtherwiseUnchanged() {
|
@Test fun theTreeIsOtherwiseUnchanged() {
|
||||||
|
|||||||
Reference in new issue
Block a user