def test_that_thank_you_page_is_displayed_after_successful_registration(self, mozwebqa):
     """
        Register a new user using random username.
        Verify registration by checking the page title
     """
     register_pg = RegisterPage(mozwebqa)
     register_pg.go_to_registration_page()
     register_pg.register_new_user()
     actual_page_title = register_pg.page_title
     expected_page_title = register_pg._page_title_after_registration
     Assert.contains(expected_page_title, actual_page_title)
    def test_that_thank_you_page_is_displayed_after_successful_registration(self, base_url, selenium):
        """
           Register a new user using random username.
           Verify registration by checking the page title
        """
        page = RegisterPage(base_url, selenium).open()
        page.register_new_user()

        registration_text = page.successful_registration_message
        assert 'Thank you for registering!' in registration_text

        actual_page_title = page.page_title
        expected_page_title = page._page_title_after_registration
        assert expected_page_title in actual_page_title
Пример #3
0
    def test_that_thank_you_page_is_displayed_after_registration(
            self, base_url, selenium):
        """
           Register a new user using random username.
           Verify registration by checking the page title
        """
        page = RegisterPage(base_url, selenium).open()
        page.register_new_user()

        registration_text = page.successful_registration_message
        assert 'Thank you for registering!' in registration_text

        actual_page_title = page.page_title
        expected_page_title = page._page_title_after_registration
        assert expected_page_title in actual_page_title
Пример #4
0
 def sign_out(self):
     self.header.click_logout()
     from pages.desktop.register_page import RegisterPage
     return RegisterPage(self.testsetup)
Пример #5
0
 def new_user_registration_page(self):
     from pages.desktop.register_page import RegisterPage
     return self._go_to_page(RegisterPage(self.testsetup))