From 4c4c6409b91ec46db9fa0b75cfe4ce3528f524e2 Mon Sep 17 00:00:00 2001 From: Amanjeet Singh Date: Tue, 8 Oct 2024 13:28:39 +0530 Subject: [PATCH] fix: don't break tests --- .../maestro/orchestra/MaestroCommandSerializationTest.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/maestro-orchestra/src/test/java/maestro/orchestra/MaestroCommandSerializationTest.kt b/maestro-orchestra/src/test/java/maestro/orchestra/MaestroCommandSerializationTest.kt index b962514b43..3339c9a316 100644 --- a/maestro-orchestra/src/test/java/maestro/orchestra/MaestroCommandSerializationTest.kt +++ b/maestro-orchestra/src/test/java/maestro/orchestra/MaestroCommandSerializationTest.kt @@ -33,7 +33,8 @@ internal class MaestroCommandSerializationTest { { "tapOnElement" : { "selector" : { - "textRegex" : "[A-f0-9]" + "textRegex" : "[A-f0-9]", + "optional" : false }, "retryIfNoChange" : false, "waitUntilVisible" : true, @@ -234,10 +235,12 @@ internal class MaestroCommandSerializationTest { { "assertCommand" : { "visible" : { - "textRegex" : "[A-f0-9]" + "textRegex" : "[A-f0-9]", + "optional" : false }, "notVisible" : { - "textRegex" : "\\s" + "textRegex" : "\\s", + "optional" : false }, "optional" : false }