import unittest
from config import config
from com import utils
from lib.log import Log
from pageobjects.admin.config.email_config import EmailConfig
from pageobjects.admin.config.email_sub import EmailSub
from pageobjects.login import Login


class Testemailsubscriptions(unittest.TestCase):
    """
    Test Reset Button edit email notification
    """
    menu = config.EMAIL_SUB
    browser = config.BROWSER
    @classmethod
    def setUpClass(cls):
        cls.driver = utils.get_browser_driver(cls.browser)
        cls.login = Login(cls.driver)
        cls.login.open_browser(config.LOGIN_URL)
        cls.login.login(config.USER_NAME, config.PASSWORD)
        cls.emailsub = EmailSub(cls.driver)
        # cls.emailsub.max_browser()
        EmailConfig(cls.driver).switch_menu(cls.menu)

    def test_edit_notification(self):
        self.emailsub.enable_notification()
        self.emailsub.disable_notification()

    @classmethod
    def tearDownClass(cls):
        cls.emailsub.quit_browser()

if __name__ == "__main__":
    unittest.main()



7000eb2e5938269aefe493b17f99778995a70faa
<mask token>


class Testemailsubscriptions(unittest.TestCase):
    <mask token>
    menu = config.EMAIL_SUB
    browser = config.BROWSER

    @classmethod
    def setUpClass(cls):
        cls.driver = utils.get_browser_driver(cls.browser)
        cls.login = Login(cls.driver)
        cls.login.open_browser(config.LOGIN_URL)
        cls.login.login(config.USER_NAME, config.PASSWORD)
        cls.emailsub = EmailSub(cls.driver)
        EmailConfig(cls.driver).switch_menu(cls.menu)

    def test_edit_notification(self):
        self.emailsub.enable_notification()
        self.emailsub.disable_notification()

    @classmethod
    def tearDownClass(cls):
        cls.emailsub.quit_browser()


<mask token>

<mask token>


class Testemailsubscriptions(unittest.TestCase):
    """
    Test Reset Button edit email notification
    """
    menu = config.EMAIL_SUB
    browser = config.BROWSER

    @classmethod
    def setUpClass(cls):
        cls.driver = utils.get_browser_driver(cls.browser)
        cls.login = Login(cls.driver)
        cls.login.open_browser(config.LOGIN_URL)
        cls.login.login(config.USER_NAME, config.PASSWORD)
        cls.emailsub = EmailSub(cls.driver)
        EmailConfig(cls.driver).switch_menu(cls.menu)

    def test_edit_notification(self):
        self.emailsub.enable_notification()
        self.emailsub.disable_notification()

    @classmethod
    def tearDownClass(cls):
        cls.emailsub.quit_browser()


<mask token>

<mask token>


class Testemailsubscriptions(unittest.TestCase):
    """
    Test Reset Button edit email notification
    """
    menu = config.EMAIL_SUB
    browser = config.BROWSER

    @classmethod
    def setUpClass(cls):
        cls.driver = utils.get_browser_driver(cls.browser)
        cls.login = Login(cls.driver)
        cls.login.open_browser(config.LOGIN_URL)
        cls.login.login(config.USER_NAME, config.PASSWORD)
        cls.emailsub = EmailSub(cls.driver)
        EmailConfig(cls.driver).switch_menu(cls.menu)

    def test_edit_notification(self):
        self.emailsub.enable_notification()
        self.emailsub.disable_notification()

    @classmethod
    def tearDownClass(cls):
        cls.emailsub.quit_browser()


if __name__ == '__main__':
    unittest.main()

import unittest
from config import config
from com import utils
from lib.log import Log
from pageobjects.admin.config.email_config import EmailConfig
from pageobjects.admin.config.email_sub import EmailSub
from pageobjects.login import Login


class Testemailsubscriptions(unittest.TestCase):
    """
    Test Reset Button edit email notification
    """
    menu = config.EMAIL_SUB
    browser = config.BROWSER

    @classmethod
    def setUpClass(cls):
        cls.driver = utils.get_browser_driver(cls.browser)
        cls.login = Login(cls.driver)
        cls.login.open_browser(config.LOGIN_URL)
        cls.login.login(config.USER_NAME, config.PASSWORD)
        cls.emailsub = EmailSub(cls.driver)
        EmailConfig(cls.driver).switch_menu(cls.menu)

    def test_edit_notification(self):
        self.emailsub.enable_notification()
        self.emailsub.disable_notification()

    @classmethod
    def tearDownClass(cls):
        cls.emailsub.quit_browser()


if __name__ == '__main__':
    unittest.main()

import unittest
from config import config
from com import utils
from lib.log import Log
from pageobjects.admin.config.email_config import EmailConfig
from pageobjects.admin.config.email_sub import EmailSub
from pageobjects.login import Login


class Testemailsubscriptions(unittest.TestCase):
    """
    Test Reset Button edit email notification
    """
    menu = config.EMAIL_SUB
    browser = config.BROWSER
    @classmethod
    def setUpClass(cls):
        cls.driver = utils.get_browser_driver(cls.browser)
        cls.login = Login(cls.driver)
        cls.login.open_browser(config.LOGIN_URL)
        cls.login.login(config.USER_NAME, config.PASSWORD)
        cls.emailsub = EmailSub(cls.driver)
        # cls.emailsub.max_browser()
        EmailConfig(cls.driver).switch_menu(cls.menu)

    def test_edit_notification(self):
        self.emailsub.enable_notification()
        self.emailsub.disable_notification()

    @classmethod
    def tearDownClass(cls):
        cls.emailsub.quit_browser()

if __name__ == "__main__":
    unittest.main()


