Esempio n. 1
0
    def test_no_query_adv_forum_search(self, base_url, selenium, variables):
        if base_url in [
                'https://support-dev.allizom.org',
                'https://support.mozilla.org'
        ]:
            pytest.skip('Search results are not guaranteed to exist on %s' %
                        base_url)

        refine_search_pg = RefineSearchPage(base_url, selenium).open()

        # do test
        refine_search_pg.click_support_questions_tab()
        username = variables['users']['default']['username']
        refine_search_pg.type_in_asked_by_box(username)
        refine_search_pg.click_search_button_support()

        assert refine_search_pg.search_result_count > 0, "No search results not found"
Esempio n. 2
0
    def test_no_query_adv_forum_search(self, base_url, selenium, variables):
        if base_url in ['https://support-dev.allizom.org',
                        'https://support.mozilla.org']:
            pytest.skip('Search results are not guaranteed to exist on %s' % base_url)

        refine_search_pg = RefineSearchPage(base_url, selenium).open()

        # do test
        refine_search_pg.click_support_questions_tab()
        username = variables['users']['default']['username']
        refine_search_pg.type_in_asked_by_box(username)
        refine_search_pg.click_search_button_support()

        assert refine_search_pg.search_result_count > 0, "No search results not found"
Esempio n. 3
0
    def test_no_query_adv_forum_search(self, mozwebqa):
        refine_search_pg = RefineSearchPage(mozwebqa)

        # go to page and log in
        refine_search_pg.go_to_refine_search_page()
        refine_search_pg.sign_in('default')

        # do test
        refine_search_pg.click_support_questions_tab()
        refine_search_pg.type_in_asked_by_box(refine_search_pg.get_user_name('default'))
        refine_search_pg.click_search_button_support()

        Assert.true(refine_search_pg.search_result_count > 0, "No search results not found")

        # sign out
        refine_search_pg.sign_out()
Esempio n. 4
0
 def refine_search_page(self, do_login=True, user='******'):
     from pages.desktop.refine_search_page import RefineSearchPage
     return self._go_to_page(RefineSearchPage(self.testsetup), do_login,
                             user)
Esempio n. 5
0
 def refine_search_page(self, username=None, password=None):
     from pages.desktop.refine_search_page import RefineSearchPage
     return self._go_to_page(RefineSearchPage(self.testsetup), username,
                             password)