Beispiel #1
0
    def test_set_priority(self):
        main_page = MainPage(self.driver)

        for priority in main_page.PRIORITY_NAMES:
            main_page.set_priority(0, priority, self)
            main_page.check_priority(0, priority, self)
            main_page.choose_priority(priority)  # just ot exit window
Beispiel #2
0
    def test_priority_order(self):
        main_page = MainPage(self.driver)

        # Change priorities
        main_page.set_priority(0, main_page.HIGH_PRIORITY, self)
        main_page.set_priority(1, main_page.MID_PRIORITY, self)
        main_page.set_priority(2, main_page.LOW_PRIORITY, self)

        # Sort
        main_page.set_sort(main_page.SORT_BY_PRIORITY)

        # Check
        main_page.check_todo_order(self)