From 9fa6b2ec2f1f4cab67a047615316be99cf3451dd Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Fri, 25 Nov 2022 18:19:07 +0530 Subject: [PATCH] Refactor Kivy payment test case --- src/bitmessagekivy/tests/test_payment_subscription.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bitmessagekivy/tests/test_payment_subscription.py b/src/bitmessagekivy/tests/test_payment_subscription.py index f664c1a5..403bb515 100644 --- a/src/bitmessagekivy/tests/test_payment_subscription.py +++ b/src/bitmessagekivy/tests/test_payment_subscription.py @@ -34,11 +34,8 @@ class PaymentScreen(TeleniumTestProcess): self.assertCheckScrollDown('//Payment//ScrollView[0]', timeout=3) # Click on BUY Button self.cli.wait_click('//MDRaisedButton[@text=\"BUY\"]', timeout=2) - # self.assertEqual('//PaymentMethodLayout[@disabled]', 'True') #Returns None when condition True - # CLick on the Payment Method - self.cli.click_on('//ScrollView[0]/ListItemWithLabel[0]') - # Check pop up is opened - self.assertTrue('//PaymentMethodLayout[@disabled]', 'False') + # assert check the buying option popup is closed + self.assertExists('//PaymentMethodLayout[@disabled=false]', timeout=5) # Click out side to dismiss the popup self.cli.wait_click('//MDRaisedButton[3]', timeout=2) # Checking Current screen(Payment screen)