This repository has been archived on 2025-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2025-02-03/src/bitmessagekivy/tests/test_payment_subscription.py

30 lines
1.3 KiB
Python

from .telenium_process import TeleniumTestProcess
class PaymentScreen(TeleniumTestProcess):
"""SubscriptionPayment Screen Functionality Testing"""
def test_select_subscripton(self):
"""Select Subscripton From List of Subscriptons"""
print("=====================Test -Select Subscripton From List of Subscriptons=====================")
self.cli.sleep(4)
self.cli.click_on('//MDToolbar/BoxLayout[0]/MDActionTopAppBarButton[0]')
self.cli.sleep(3)
self.cli.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]", 1)
self.cli.sleep(3)
self.cli.click_on('//NavigationItem[8]')
self.assertExists("//Payment[@name~=\"payment\"]", timeout=2)
self.cli.sleep(3)
self.cli.drag(
'//Payment/BoxLayout[0]/ScrollView[0]/BoxLayout[0]/ProductCategoryLayout[0]/ProductLayout[1]',
'//Payment/BoxLayout[0]/ScrollView[0]/BoxLayout[0]/ProductCategoryLayout[0]/ProductLayout[0]', 1)
self.cli.sleep(2)
self.cli.click_on('//MDRaisedButton[3]')
self.cli.sleep(2)
self.cli.click_on('//ListItemWithLabel[0]')
self.cli.sleep(2)
self.cli.click_on('//MDRaisedButton[3]')
self.cli.sleep(2)
self.assertExists("//Payment[@name~=\"payment\"]", timeout=2)