Пример #1
0
 def test_horizontal_nav_bar_tabs(self, selenium, new_controls_rest):
     """Tests that several objects in a widget can be deleted sequentially."""
     selenium.get(dashboard.Dashboard.URL)
     controls_widget = dashboard.Dashboard(selenium).select_controls()
     for _ in xrange(controls_widget.member_count):
         counter = controls_widget.get_items_count()
         (controls_widget.select_nth_member(
             0).press_object_settings().select_delete().confirm_delete())
         controls_widget.wait_member_deleted(counter)
     assert generic_widget.Controls(selenium).members_listed == []
Пример #2
0
 def test_horizontal_nav_bar_tabs(self, new_controls_rest, selenium):
     """Tests that several objects in widget can be deleted sequentially."""
     selenium.get(dashboard.Dashboard.URL)
     controls_widget = dashboard.Dashboard(selenium).select_controls()
     for _ in xrange(controls_widget.member_count):
         counter = controls_widget.get_items_count()
         (controls_widget.select_member_by_num(
             0).open_info_3bbs().select_delete().confirm_delete())
         controls_widget.wait_member_deleted(counter)
     assert generic_widget.Controls(selenium,
                                    objects.CONTROLS).members_listed == []
Пример #3
0
 def test_horizontal_nav_bar_tabs(self, new_controls_rest, my_work_dashboard,
                                  selenium):
   """Tests that several objects in widget can be deleted sequentially.
   Preconditions:
   - Controls created via REST API.
   """
   controls_tab = my_work_dashboard.select_controls()
   for _ in xrange(controls_tab.member_count):
     counter = controls_tab.get_items_count()
     (controls_tab.select_member_by_num(0).
      open_info_3bbs().select_delete().confirm_delete())
     controls_tab.wait_member_deleted(counter)
   controls_generic_widget = generic_widget.Controls(
       selenium, objects.CONTROLS)
   assert controls_generic_widget.members_listed == []
Пример #4
0
    def test_horizontal_nav_bar_tabs(self, selenium, battery_of_controls):
        """Tests that several objects in a widget can be deleted sequentially"""
        selenium.get(dashboard.Dashboard.URL)
        controls_widget = dashboard\
            .Dashboard(selenium)\
            .select_controls()

        try:
            for _ in xrange(batch.BATTERY):
                controls_widget\
                    .select_nth_member(0)\
                    .press_object_settings()\
                    .select_edit()\
                    .delete_object()\
                    .confirm_delete()
        except exception.RedirectTimeout:
            # we expect this exception since the url will stay the same for the last
            # deleted member in object list in a widget
            assert generic_widget.Controls(selenium).members_listed == []
        else:
            assert False