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 = PageProvider(mozwebqa).new_user_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, mozwebqa): """ Register a new user using random username. Verify registration by checking the page title """ register_pg = PageProvider(mozwebqa).new_user_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)