Skip to content

Commit 9fa6b2e

Browse files
committed
Refactor Kivy payment test case
1 parent 39a5c9c commit 9fa6b2e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/bitmessagekivy/tests/test_payment_subscription.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ def test_select_subscription(self):
3434
self.assertCheckScrollDown('//Payment//ScrollView[0]', timeout=3)
3535
# Click on BUY Button
3636
self.cli.wait_click('//MDRaisedButton[@text=\"BUY\"]', timeout=2)
37-
# self.assertEqual('//PaymentMethodLayout[@disabled]', 'True') #Returns None when condition True
38-
# CLick on the Payment Method
39-
self.cli.click_on('//ScrollView[0]/ListItemWithLabel[0]')
40-
# Check pop up is opened
41-
self.assertTrue('//PaymentMethodLayout[@disabled]', 'False')
37+
# assert check the buying option popup is closed
38+
self.assertExists('//PaymentMethodLayout[@disabled=false]', timeout=5)
4239
# Click out side to dismiss the popup
4340
self.cli.wait_click('//MDRaisedButton[3]', timeout=2)
4441
# Checking Current screen(Payment screen)

0 commit comments

Comments
 (0)