예제 #1
0
    def login_to_app(self, driver):
        qa_sandbox_page = QASandboxPage(driver)
        qa_sandbox_page.login_btn.click()

        login_page = LoginPage(driver)
        login_page.login("*****@*****.**", "lINKINpARK06")

        return DashboardPage(driver)
    def test_login_to_sandbox(self):
        qa_sandbox_page = QASandboxPage(self.driver)
        qa_sandbox_page.login_btn.click()
        login_page = LoginPage(self.driver)
        login_page.login("*****@*****.**", "lINKINpARK06")

        dashboard_page = DashboardPage(self.driver)

        assert "Stančić Milan" == dashboard_page.profile_card_title, "Incorrect user is logged in application."