@@ -13,7 +13,7 @@ def test_select_subscription(self):
1313 # Dragging from sent to inbox to get Payment tab
1414 self .drag ("//NavigationItem[@text=\" Sent\" ]" , "//NavigationItem[@text=\" Inbox\" ]" )
1515 # assert for checking scroll function
16- self .assertCheckScrollDown ('//ContentNavigationDrawer//ScrollView[0]' , timeout = 3 )
16+ self .assertCheckScrollDown ('//ContentNavigationDrawer//ScrollView[0]' , timeout = 5 )
1717 # this is for opening Payment screen
1818 self .cli .wait_click ('//NavigationItem[@text=\" Purchase\" ]' , timeout = 5 )
1919 # Checking the navbar is in closed state
@@ -25,18 +25,20 @@ def test_select_subscription(self):
2525 '//ProductCategoryLayout[0]/ProductLayout[0]' ,
2626 '//ProductCategoryLayout[0]/ProductLayout[1]' )
2727 # assert for checking scroll function
28- self .assertCheckScrollDown ('//Payment//ScrollView[0]' , timeout = 3 )
28+ self .assertCheckScrollDown ('//Payment//ScrollView[0]' , timeout = 5 )
2929 # Scrolling Up Product list
3030 self .drag (
3131 '//ProductCategoryLayout[0]/ProductLayout[1]' ,
3232 '//ProductCategoryLayout[0]/ProductLayout[0]' )
3333 # assert for checking scroll function
34- self .assertCheckScrollDown ('//Payment//ScrollView[0]' , timeout = 3 )
34+ self .assertCheckScrollDown ('//Payment//ScrollView[0]' , timeout = 5 )
3535 # Click on BUY Button
36- self .cli .wait_click ('//MDRaisedButton[@text=\" BUY\" ]' , timeout = 2 )
37- # assert check the buying option popup is closed
38- self .assertExists ('//PaymentMethodLayout[@disabled=false]' , timeout = 5 )
36+ self .cli .wait_click ('//MDRaisedButton[@text=\" BUY\" ]' , timeout = 5 )
37+ # CLick on the Payment Method
38+ self .cli .click_on ('//ScrollView[0]//ListItemWithLabel[0]' )
39+ # Check pop up is opened
40+ self .assertExists ('//PaymentMethodLayout[@disabled=false]' , timeout = 10 )
3941 # Click out side to dismiss the popup
40- self .cli .wait_click ('//MDRaisedButton[3 ]' , timeout = 2 )
42+ self .cli .wait_click ('//MDRaisedButton[5 ]' , timeout = 5 )
4143 # Checking Current screen(Payment screen)
42- self .assertExists ("//ScreenManager[@current=\" payment\" ]" , timeout = 3 )
44+ self .assertExists ("//ScreenManager[@current=\" payment\" ]" , timeout = 5 )
0 commit comments