예제 #1
0
    def test_no_statement(self):
        mp = MainPage(self.driver)
        mp.signin_button_click()

        sip = SignInPage(self.driver)
        sip.name_fill("Name")
        sip.last_name_fill("LastName")
        sip.email_fill("*****@*****.**")
        sip.password_fill("SupaZupa")
        sip.password_confirmation_fill("SupaZupa")
        sip.newsletter_checkbox_click()
        sip.create_accout_button_click()
        assert self.UtilsSelenium.get_webpage_title(
        ) == "Utwórz nowe konto klienta | eobuwie.pl", f"Error: Page should be still on create account page and the title should be: Utwórz nowe konto klienta | eobuwie.pl, but it is {self.UtilsSelenium.get_webpage_title()} instead"
예제 #2
0
    def test_signin_negative_wrong_email(self):
        mp = MainPage(self.driver)
        mp.signin_button_click()

        sip = SignInPage(self.driver)
        sip.name_fill("Imie")
        sip.last_name_fill("LastName")
        sip.email_fill("test")
        sip.password_fill("SupaZupa")
        sip.password_confirmation_fill("SupaZupa")
        sip.statement_checkbox_click()
        sip.create_accout_button_click()
        assert sip.get_email_error(
        ) == "Wprowadzono niepoprawny adres e-mail", "There is no email error!"