import pytest
from Tests.test_Base import BaseTest
from Pages.LoginPage import LoginPage
from Config.config import TestData

class Test_Login(BaseTest):

    # def test_signup_link_visible(self):
    #     self.loginPage = LoginPage(self.driver)
    #     flag = self.loginPage.is_sign_up_link_exits()
    #     assert flag

    def test_login_page_title(self):
        self.loginPage = LoginPage(self.driver)
        title = self.loginPage.get_title(TestData.LOGIN_PAGE_TITLE)
        print(title)
        assert title == TestData.LOGIN_PAGE_TITLE

    def test_login(self):
        self.loginPage = LoginPage(self.driver)
        self.loginPage.do_login(TestData.USER_NAME, TestData.PASSWORD)

