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))