@@ -52,38 +52,28 @@ class SmokeTestUiTest {
5252
5353 setPinFields(" 3133734" , " 313373" )
5454 onNodeWithText(str(R .string.pin_creation_button)).performClick()
55- waitForTextEitherTree(R .string.pin_creation_error)
55+ waitForTextEitherTree(R .string.pin_creation_error, assertDisplayed = false )
5656
5757 setPinFields(" 123456" , " 123456" )
5858 onNodeWithText(str(R .string.pin_creation_button)).performClick()
59- waitForTextEitherTree(R .string.pin_creation_error_weak_pin)
59+ waitForTextEitherTree(R .string.pin_creation_error_weak_pin, assertDisplayed = false )
6060
6161 setPinFields(" 313373" , " 313373" )
6262 onNodeWithText(str(R .string.pin_creation_button)).performClick()
6363
6464 waitForTextEitherTree(str(R .string.pin_creating_vault), assertDisplayed = false )
6565
6666 waitForEitherTree(hasRole(Role .Button ) and hasContentDescription(str(R .string.camera_shutter_button_desc)))
67-
68- onNode(
69- hasRole(Role .Button ) and hasContentDescription(str(R .string.camera_shutter_button_desc))
70- ).performClick()
67+ .performClick()
7168
7269 waitForEitherTree(hasContentDescription(str(R .string.camera_more_options_content_description)))
73-
74- onNode(
75- hasRole(Role .Button ) and hasContentDescription(str(R .string.camera_more_options_content_description))
76- ).performClick()
70+ .performClick()
7771
7872 waitForEitherTree(hasTestTag(" flash-switch" ))
73+ .performClick()
7974
80- onNode(
81- hasRole(Role .Switch ) and hasTestTag(" flash-switch" )
82- ).performClick()
83-
84- onNode(
85- hasRole(Role .Button ) and hasContentDescription(str(R .string.camera_close_controls_content_description))
86- ).performClick()
75+ waitForEitherTree(hasRole(Role .Button ) and hasContentDescription(str(R .string.camera_close_controls_content_description)))
76+ .performClick()
8777 }
8878 }
8979
0 commit comments