def test_edit_selected_containers_provider():
    '''Testing Configuration -> Edit... button functionality
    Step:
        In Providers summary page - click configuration
        menu and select "Edit this containers provider"
    Expected result:
        The user should be navigated to the container's basic information page.'''
    name = select_first_provider_and_get_its_name()
    provider = ContainersProvider(name)
    provider.load_details()
    navigate_to(provider, 'EditFromDetails')
    assert 'Edit Containers Providers \'{}\''.format(name) == breadcrumbs_names()[-1]
Beispiel #2
0
 def _on_detail_page(self):
     """ Returns ``True`` if on the providers detail page, ``False`` if not."""
     if not self.string_name:
         # No point in doing that since it is probably being called from badly configured class
         # And since it is badly configured, let's notify the user.
         logger.warning(
             'Hey, _on_details_page called from {} class which does not have string_name set'
             .format(type(self).__name__))
         return False
     ensure_browser_open()
     collection = '{} Providers'.format(self.string_name)
     title = '{} (Summary)'.format(self.name)
     return breadcrumbs_names() == [collection, title] and summary_title() == title
def test_edit_selected_containers_provider():
    '''Testing Configuration -> Edit... button functionality
    Step:
        In Providers summary page - click configuration
        menu and select "Edit this containers provider"
    Expected result:
        The user should be navigated to the container's basic information page.'''
    name = select_first_provider_and_get_its_name()
    provider = ContainersProvider(name)
    provider.load_details()
    navigate_to(provider, 'EditFromDetails')
    assert 'Edit Containers Providers \'{}\''.format(
        name) == breadcrumbs_names()[-1]
 def _on_detail_page(self):
     """ Returns ``True`` if on the providers detail page, ``False`` if not."""
     if not self.string_name:
         # No point in doing that since it is probably being called from badly configured class
         # And since it is badly configured, let's notify the user.
         logger.warning(
             'Hey, _on_details_page called from {} class which does not have string_name set'
             .format(type(self).__name__))
         return False
     ensure_browser_open()
     collection = '{} Providers'.format(self.string_name)
     title = '{} (Summary)'.format(self.name)
     return breadcrumbs_names() == [collection, title
                                    ] and summary_title() == title