@@ -30,10 +30,10 @@ def test_save_address(self):
30
30
self .assertCheckScrollDown ('//ContentNavigationDrawer//ScrollView[0]' , timeout = 5 )
31
31
# this is for opening addressbook screen
32
32
self .cli .wait_click ('//NavigationItem[@text=\" Address Book\" ]' , timeout = 5 )
33
- # Checking current screen
34
- self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
35
33
# This is for checking the Side nav Bar is closed
36
34
self .assertExists ('//MDNavigationDrawer[@status~=\" closed\" ]' , timeout = 5 )
35
+ # Checking current screen
36
+ self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
37
37
# Check for rendered button
38
38
self .assertExists ('//ActionTopAppBarButton[@icon=\" account-plus\" ]' , timeout = 5 )
39
39
# Click on "Account-Plus' Icon to open popup to save a new Address
@@ -46,7 +46,7 @@ def test_save_address(self):
46
46
self .cli .setattr ('//AddAddressPopup/BoxLayout[0]/MDTextField[@hint_text=\" Label\" ]' , 'text' , self .test_label )
47
47
# Checking the Label Field should not be empty
48
48
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 )
50
50
# Add Correct Address
51
51
self .cli .setattr (
52
52
'//AddAddressPopup/BoxLayout[0]/MDTextField[@hint_text=\" Address\" ]' , 'text' ,
@@ -57,15 +57,15 @@ def test_save_address(self):
57
57
test_address ['autoresponder_address' ])
58
58
# Validating the Label field
59
59
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 )
61
61
# Validating the Valid Address is entered
62
62
self .assertExists (
63
63
'//AddAddressPopup/BoxLayout[0]/MDTextField[1][@text=\" {}\" ]' .format (
64
- test_address ['autoresponder_address' ]), timeout = 3 )
64
+ test_address ['autoresponder_address' ]), timeout = 5 )
65
65
# Checking cancel button
66
66
self .assertExists ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 5 )
67
67
# 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 )
69
69
# Checking current screen
70
70
self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
71
71
@@ -83,18 +83,18 @@ def test_dismiss_addressbook_popup(self):
83
83
self .cli .setattr ('//AddAddressPopup/BoxLayout[0]/MDTextField[0]' , 'text' , 'test_label2' )
84
84
# Checking the Label Field should not be empty
85
85
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 )
87
87
# Add Address to Address Field
88
88
self .cli .setattr (
89
89
'//AddAddressPopup/BoxLayout[0]/MDTextField[1]' , 'text' , test_address ['recipient' ])
90
90
# Checking the Address Field should not be empty
91
91
self .assertExists (
92
92
'//AddAddressPopup/BoxLayout[0]/MDTextField[1][@text=\" {}\" ]' .format (test_address ['recipient' ]),
93
- timeout = 2 )
93
+ timeout = 5 )
94
94
# Checking for "Cancel" button is rendered
95
95
self .assertExists ('//MDRaisedButton[@text=\" Cancel\" ]' , timeout = 5 )
96
96
# 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 )
98
98
# Check Current Screen (Address Book)
99
99
self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 5 )
100
100
@@ -103,13 +103,13 @@ def test_dismiss_addressbook_popup(self):
103
103
def test_send_message_to_saved_address (self ):
104
104
"""This method is to send msg to the saved address from addressbook"""
105
105
# Checking the Message detail Dialog box is not opened
106
- self .assertNotExists ('//MDDialog' , timeout = 3 )
106
+ self .assertNotExists ('//MDDialog' , timeout = 5 )
107
107
# Checking the saved address is rendered
108
108
self .assertExists ('//AddressBook/BoxLayout[0]//SwipeToDeleteItem[0]' , timeout = 5 )
109
109
# Click on a Address to open address Details popup
110
110
self .cli .wait_click ('//AddressBook/BoxLayout[0]//SwipeToDeleteItem[0]' , timeout = 5 )
111
111
# Checking the Message detail Dialog is opened
112
- self .assertExists ('//MDDialog' , timeout = 3 )
112
+ self .assertExists ('//MDDialog' , timeout = 5 )
113
113
# Checking the buttons are rendered
114
114
self .assertExists ('//MDRaisedButton' , timeout = 5 )
115
115
# Click on the Send to message Button
@@ -132,9 +132,9 @@ def test_delete_address_from_saved_address(self):
132
132
# Method to open side navbar (written in telenium_process.py)
133
133
self .open_side_navbar ()
134
134
# 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 )
136
136
# checking state of Nav drawer(closed)
137
- self .assertExists ("//MDNavigationDrawer[@state~=\" close\" ]" , timeout = 2 )
137
+ self .assertExists ("//MDNavigationDrawer[@state~=\" close\" ]" , timeout = 5 )
138
138
# Checking current screen
139
139
self .assertExists ("//ScreenManager[@current=\" addressbook\" ]" , timeout = 8 )
140
140
# Checking the Address is rendered
0 commit comments