Example #1
0
 def test_contact_us_without_message(self):
     main_page = testcase.pages.main_page.MainPage(self.driver)
     main_page.click_contact_us_button()
     contact_us_page = testcase.pages.contact_us_page.ContactUsPage(
         self.driver)
     contact_us_page.email_address_input('*****@*****.**')
     contact_us_page.click_send_button()
     assert contact_us_page.alert_message_missing(
     ) == 'The message cannot be blank.'
Example #2
0
    def test_contact_us_no_credentials(self):
        main_page = testcase.pages.main_page.MainPage(self.driver)
        main_page.click_contact_us_button()
        contact_us_page = testcase.pages.contact_us_page.ContactUsPage(
            self.driver)

        contact_us_page.click_send_button()
        assert contact_us_page.alert_message_missing(
        ) == 'Invalid email address.'
Example #3
0
 def test_contact_us_only_with_email_and_message(self):
     main_page = testcase.pages.main_page.MainPage(self.driver)
     main_page.click_contact_us_button()
     contact_us_page = testcase.pages.contact_us_page.ContactUsPage(
         self.driver)
     contact_us_page.email_address_input('*****@*****.**')
     contact_us_page.message_input_contact_us(
         'Buna ziua, \nvreau sa ma fac o cerere de retur\n hop si asa.')
     contact_us_page.click_send_button()
     assert contact_us_page.alert_message_missing(
     ) == 'Please select a subject from the list provided.'
Example #4
0
 def test_contact_us_with_email_subject_and_message(self):
     main_page = testcase.pages.main_page.MainPage(self.driver)
     main_page.click_contact_us_button()
     contact_us_page = testcase.pages.contact_us_page.ContactUsPage(
         self.driver)
     contact_us_page.subject_heading_dropdown('Customer service')
     contact_us_page.email_address_input('*****@*****.**')
     contact_us_page.message_input_contact_us(
         'Buna ziua, \nvreau sa ma fac o cerere de retur\n hop si asa.')
     contact_us_page.click_send_button()
     assert contact_us_page.alert_message_succes(
     ) == 'Your message has been successfully sent to our team.'