Esempio n. 1
0
    def test_02_sorting(self):
        """Проверка сортирвоки вкладки"""

        gb_tool = GBtool(self.driver)
        my_orders = My_oders(self.driver)

        gb_tool.goto_tab(my_orders=True)

        game_list = [
            'all games', 'World of Warcraft', 'Counter-Strike', 'Overwatch',
            'Dota 2', 'League of legends'
        ]
        i = 1
        while i < len(game_list):
            my_orders.do_sort_by_game(game_list[i])
            i += 1

        cat_list = [
            'All orders', 'Auction', 'In progress', 'Waiting', 'Warranty',
            'Done', 'Drafts'
        ]
        i = 1
        while i < len(cat_list):
            my_orders.do_sort_by_cat(cat_list[i])
            i += 1
Esempio n. 2
0
    def test_03(self):
        """Инвайт - дезинвайт"""

        gb_tool = GBtool(self.driver)
        gb_tool.goto_tab(top_boost=True)
        top_boost = TopBoostPage(self.driver)
        top_boost.invite_booster()
        top_boost.dezinvite_boost()
Esempio n. 3
0
    def test_01(self):
        """Проверка перехода на домашнюю страницу со страницы пользователя без заказов """

        gb_tool = GBtool(self.driver)
        my_orders = MyOdersPage(self.driver)

        gb_tool.goto_tab(my_orders=True)
        time.sleep(1)
        my_orders.check_components_no_orders()
Esempio n. 4
0
    def test_02_sort(self):
        """Сортировка раздела"""

        gb_tool = GBtool(self.driver)
        top_boost = TopBoostPage(self.driver)

        gb_tool.goto_tab(top_boost=True)
        gb_tool.do_sort_by_game('World of Warcraft')
        top_boost.check_sort_by_service()
        top_boost.search_check('secondbooster')
Esempio n. 5
0
    def test_03_new_order(self):
        """Проверка работы кнопок создания заказа"""

        gb_tool = GBtool(self.driver)
        my_orders = My_oders(self.driver)
        constructor = Constructor(self.driver)

        gb_tool.goto_tab(my_orders=True)
        btn = my_orders.Locators.NEW_ORDER_BTN_LEFT(self.driver)
        btn = self.driver.find_element_by_css_selector(btn)
        btn.click()
        constructor.is_constructor_download()

        gb_tool.goto_tab(my_orders=True)
        btn2 = my_orders.Locators.NEW_ORDER_BTN_RIGHT(self.driver)
        btn2 = self.driver.find_element_by_css_selector(btn2)
        btn2.click()
        constructor.is_constructor_download()
Esempio n. 6
0
    def test_01_download(self):
        """ЗАгрузка вкладки топ бустеры, октрытой из разных вкладок"""

        gb_tool = GBtool(self.driver)
        top_boost = TopBoostPage(self.driver)

        # gb_tool.goto_tab(home=True)
        time.sleep(1)
        gb_tool.goto_tab(top_boost=True)
        top_boost.check_components()

        gb_tool.goto_tab(my_orders=True)
        time.sleep(1)
        gb_tool.goto_tab(top_boost=True)
        top_boost.check_components()

        gb_tool.goto_tab(popular=True)
        time.sleep(1)
        gb_tool.goto_tab(top_boost=True)
        top_boost.check_components()
Esempio n. 7
0
    def test_01_download(self):
        """ЗАгрузка баланса, октрытого из разных вкладок"""

        gb_tool = GBtool(self.driver)
        balance = Balance(self.driver)


        # gb_tool.goto_tab(home=True)
        time.sleep(1)
        gb_tool.go_to_menu('BALANCE')
        balance.check_components()

        gb_tool.goto_tab(my_orders=True)
        time.sleep(1)
        gb_tool.go_to_menu('BALANCE')
        balance.check_components()

        gb_tool.goto_tab(popular=True)
        time.sleep(1)
        gb_tool.go_to_menu('BALANCE')
        balance.check_components()

        gb_tool.goto_tab(top_boost=True)
        time.sleep(1)
        gb_tool.go_to_menu('BALANCE')
        balance.check_components()
Esempio n. 8
0
    def test_01_download_no_orders(self):
        """ЗАгрузка дэшборда, с профиля без заказов, октрытого из разных вкладок"""

        gb_tool = GBtool(self.driver)
        top_boost = TopBoostPage(self.driver)

        # gb_tool.goto_tab(home=True)
        time.sleep(1)
        gb_tool.go_to_menu('BALANCE')
        top_boost.check_components()

        gb_tool.goto_tab(my_orders=True)
        time.sleep(1)
        gb_tool.goto_tab(top_boost=True)
        top_boost.check_components()

        gb_tool.goto_tab(popular=True)
        time.sleep(1)
        gb_tool.goto_tab(top_boost=True)
        top_boost.check_components()
Esempio n. 9
0
    def test_01_with_orders_download(self):
        """Проверка перехода на домашнюю странциу со всех вкладок"""

        gbtools = GBtool(self.driver)
        home_page = HomePage(self.driver)

        gbtools.go_to_tab_booster(my_orders=True)
        time.sleep(1)
        gbtools.go_to_tab_booster(home=True)
        home_page.check_components_with_order()

        gbtools.goto_tab(auto=True)
        gbtools.goto_tab(home=True)
        home_page.check_components_with_order()

        gbtools.goto_tab(top_boost=True)
        gbtools.goto_tab(home=True)
        home_page.check_components_with_order()
Esempio n. 10
0
    def test_01_download(self):
        """ЗАгрузка баланса, октрытого из разных вкладок"""

        gb_tool = GBtool(self.driver)
        settings = Settings(self.driver)

        time.sleep(1)
        gb_tool.go_to_menu('SETTINGS')
        settings.check_components()

        gb_tool.goto_tab(my_orders=True)
        time.sleep(1)
        gb_tool.go_to_menu('SETTINGS')
        settings.check_components()

        gb_tool.goto_tab(popular=True)
        time.sleep(1)
        gb_tool.go_to_menu('SETTINGS')
        settings.check_components()

        gb_tool.goto_tab(top_boost=True)
        time.sleep(1)
        gb_tool.go_to_menu('SETTINGS')
        settings.check_components()
Esempio n. 11
0
    def test_01_tab_download(self):
        """Проверка загрузки вкладки, открытой из разных вкладок"""

        gb_tool = GBtool(self.driver)
        my_orders = MyOdersPage(self.driver)

        gb_tool.goto_tab(home=True)
        time.sleep(1)
        gb_tool.goto_tab(my_orders=True)
        my_orders.check_components_with_orders()

        gb_tool.goto_tab(popular=True)
        time.sleep(1)
        gb_tool.goto_tab(my_orders=True)
        my_orders.check_components_with_orders()

        gb_tool.goto_tab(top_boost=True)
        time.sleep(1)
        gb_tool.goto_tab(my_orders=True)
        my_orders.check_components_with_orders()