1- from time import time
1+ """
2+ Test for creating new identity
3+ """
4+
25from random import choice
36from string import ascii_lowercase
4- from telenium .client import TeleniumHttpException
57from .telenium_process import TeleniumTestProcess
8+ from .common import skip_screen_checks
69from .common import ordered
710
811
@@ -22,15 +25,9 @@ def test_landing_screen(self):
2225 self .assert_wait_no_except ('//ScreenManager[@current]' , timeout = 15 , value = 'login' )
2326 # Click on "Proceed Next" Button to "generate random label for address" screen
2427 # Some widgets cannot renders suddenly and become not functional so we used loop with a timeout.
25- start = time ()
26- deadline = start + 2
27- while time () < deadline :
28- try :
29- # Clicking on Proceed Next Button to redirect to "random" screen
30- self .cli .wait_click ('//Screen[0]//MDFillRoundFlatIconButton[@text=\" Proceed Next\" ]' , timeout = 5 )
31- except TeleniumHttpException :
32- # Checking Current Screen(Random Screen) after Clicking on "Proceed Next" Button
33- self .assertExists ("//ScreenManager[@current=\" random\" ]" , timeout = 5 )
28+ self .assertExists ("//Screen[0]//MDFillRoundFlatIconButton[@text=\" Proceed Next\" ]" , timeout = 5 )
29+ # Clicking on Proceed Next Button to redirect to "random" screen
30+ self .cli .wait_click ('//Screen[0]//MDFillRoundFlatIconButton[@text=\" Proceed Next\" ]' , timeout = 5 )
3431 self .assertExists ("//ScreenManager[@current=\" random\" ]" , timeout = 5 )
3532
3633 @ordered
@@ -57,6 +54,7 @@ def test_generate_random_address_label(self):
5754 # Checking the new address is created
5855 self .assertExists ('//MDList[0]/CustomTwoLineAvatarIconListItem' , timeout = 10 )
5956
57+ @skip_screen_checks
6058 @ordered
6159 def test_set_default_address (self ):
6260 """Select First Address From Drawer-Box"""
0 commit comments