@@ -30,10 +30,10 @@ def test_save_address(self):
3030 self .assertCheckScrollDown ('//ContentNavigationDrawer//ScrollView[0]' , timeout = 5 )
3131 # this is for opening addressbook screen
3232 self .cli .wait_click ('//NavigationItem[@text=\" Address Book\" ]' , timeout = 5 )
33- # Checking current screen
34- self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
3533 # This is for checking the Side nav Bar is closed
3634 self .assertExists ('//MDNavigationDrawer[@status~=\" closed\" ]' , timeout = 5 )
35+ # Checking current screen
36+ self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
3737 # Check for rendered button
3838 self .assertExists ('//ActionTopAppBarButton[@icon=\" account-plus\" ]' , timeout = 5 )
3939 # Click on "Account-Plus' Icon to open popup to save a new Address
@@ -46,7 +46,7 @@ def test_save_address(self):
4646 self .cli .setattr ('//AddAddressPopup/BoxLayout[0]/MDTextField[@hint_text=\" Label\" ]' , 'text' , self .test_label )
4747 # Checking the Label Field should not be empty
4848 self .assertExists (
49- '//AddAddressPopup/BoxLayout[0]/MDTextField[0][@text=\" {}\" ]' .format (self .test_label ), timeout = 2 )
49+ '//AddAddressPopup/BoxLayout[0]/MDTextField[0][@text=\" {}\" ]' .format (self .test_label ), timeout = 5 )
5050 # Add Correct Address
5151 self .cli .setattr (
5252 '//AddAddressPopup/BoxLayout[0]/MDTextField[@hint_text=\" Address\" ]' , 'text' ,
@@ -57,15 +57,15 @@ def test_save_address(self):
5757 test_address ['autoresponder_address' ])
5858 # Validating the Label field
5959 self .assertExists (
60- '//AddAddressPopup/BoxLayout[0]/MDTextField[0][@text=\" {}\" ]' .format (self .test_label ), timeout = 2 )
60+ '//AddAddressPopup/BoxLayout[0]/MDTextField[0][@text=\" {}\" ]' .format (self .test_label ), timeout = 5 )
6161 # Validating the Valid Address is entered
6262 self .assertExists (
6363 '//AddAddressPopup/BoxLayout[0]/MDTextField[1][@text=\" {}\" ]' .format (
64- test_address ['autoresponder_address' ]), timeout = 3 )
64+ test_address ['autoresponder_address' ]), timeout = 5 )
6565 # Checking cancel button
6666 self .assertExists ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 5 )
6767 # Click on 'Cancel' Button to dismiss the popup
68- self .cli .wait_click ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 2 )
68+ self .cli .wait_click ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 5 )
6969 # Checking current screen
7070 self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
7171
@@ -83,18 +83,18 @@ def test_dismiss_addressbook_popup(self):
8383 self .cli .setattr ('//AddAddressPopup/BoxLayout[0]/MDTextField[0]' , 'text' , 'test_label2' )
8484 # Checking the Label Field should not be empty
8585 self .assertExists (
86- '//AddAddressPopup/BoxLayout[0]/MDTextField[0][@text=\" {}\" ]' .format ('test_label2' ), timeout = 2 )
86+ '//AddAddressPopup/BoxLayout[0]/MDTextField[0][@text=\" {}\" ]' .format ('test_label2' ), timeout = 5 )
8787 # Add Address to Address Field
8888 self .cli .setattr (
8989 '//AddAddressPopup/BoxLayout[0]/MDTextField[1]' , 'text' , test_address ['recipient' ])
9090 # Checking the Address Field should not be empty
9191 self .assertExists (
9292 '//AddAddressPopup/BoxLayout[0]/MDTextField[1][@text=\" {}\" ]' .format (test_address ['recipient' ]),
93- timeout = 2 )
93+ timeout = 5 )
9494 # Checking for "Cancel" button is rendered
9595 self .assertExists ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 5 )
9696 # Click on 'Cancel' Button to dismiss the popup
97- self .cli .wait_click ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 2 )
97+ self .cli .wait_click ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 5 )
9898 # Check Current Screen (Address Book)
9999 self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
100100
@@ -103,13 +103,13 @@ def test_dismiss_addressbook_popup(self):
103103 def test_send_message_to_saved_address (self ):
104104 """This method is to send msg to the saved address from addressbook"""
105105 # Checking the Message detail Dialog box is not opened
106- self .assertNotExists ('//MDDialog' , timeout = 3 )
106+ self .assertNotExists ('//MDDialog' , timeout = 5 )
107107 # Checking the saved address is rendered
108108 self .assertExists ('//AddressBook/BoxLayout[0]//SwipeToDeleteItem[0]' , timeout = 5 )
109109 # Click on a Address to open address Details popup
110110 self .cli .wait_click ('//AddressBook/BoxLayout[0]//SwipeToDeleteItem[0]' , timeout = 5 )
111111 # Checking the Message detail Dialog is opened
112- self .assertExists ('//MDDialog' , timeout = 3 )
112+ self .assertExists ('//MDDialog' , timeout = 5 )
113113 # Checking the buttons are rendered
114114 self .assertExists ('//MDRaisedButton' , timeout = 5 )
115115 # Click on the Send to message Button
@@ -132,9 +132,9 @@ def test_delete_address_from_saved_address(self):
132132 # Method to open side navbar (written in telenium_process.py)
133133 self .open_side_navbar ()
134134 # this is for opening setting screen
135- self .cli .wait_click ('//NavigationItem[@text=\" Address Book\" ]' , timeout = 2 )
135+ self .cli .wait_click ('//NavigationItem[@text=\" Address Book\" ]' , timeout = 5 )
136136 # checking state of Nav drawer(closed)
137- self .assertExists ("//MDNavigationDrawer[@state~=\" close\" ]" , timeout = 2 )
137+ self .assertExists ("//MDNavigationDrawer[@state~=\" close\" ]" , timeout = 5 )
138138 # Checking current screen
139139 self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 8 )
140140 # Checking the Address is rendered
0 commit comments