def test_positive_login(self):
     user = User('genchevskiy', 'test')
     main_page = Login_Page().open().login_as(user)
     main_page._account_button().should_be(visible, 10)
     self.assertIn(
         "Аккаунт Google: Savva Genchevskiy  \n({})".format(user.email),
         main_page._account_button().get_attribute("title"))
예제 #2
0
    def test_positive_login(self):

        user = User('genchevskiy', 'test')
        main_page = Login_Page().open().login_as(user)
        main_page._account_button().should_be(visible, 10)
        assert_that(
            main_page._account_button().get_attribute('title').encode('utf-8'),
            contains_string('Аккаунт Google: Savva Genchevskiy'))
def test_send_email_object():
    user = User('genchevskiy', 'test')
    email = Email(user.email, 'Test Subject 2', 'Hello')
    main_page = Login_Page().open().login_as(user)
    main_page.send_new_email().send_message_with(email)
    main_page._success_sent_link().should_be(visible)
    main_page.openInbox().emails_list._get(1)._subject().should_be(visible, 10).should_have(text(email.subject))
 def test_send_email(self):
     user = User('genchevskiy', 'test')
     main_page = Login_Page().open().login_as(user)
     main_page.send_new_email().send_message("Test Subject", "Hello!",
                                             user.email)
     main_page._success_sent_link().should_be(visible)
     main_page.openInbox()._email_list().should_have(size_at_least(1))
예제 #5
0
def test_invalid_email_login(email, message):
    login_page = Login_Page().open()
    login_page._email_field().set_value(email).press_enter()
    login_page._email_error().should_be(visible)
    assert_that(login_page._email_error().text.encode('utf-8'),
                contains_string(message))
def test_positive_login():
    user = User('genchevskiy', 'test')
    main_page = Login_Page().open().login_as(user)
    main_page._account_button().should_be(visible, 10)
    assert "Аккаунт Google: Savva Genchevskiy" in main_page._account_button().get_attribute("title").encode('utf-8')