def test_html_comp_visible(self):
     """
     Tests that bad HTML data within an HTML component doesn't prevent Studio from
     displaying the components on the unit page.
     """
     unit = self.go_to_unit_page()
     verify_ordering(self, unit, [{"": ["Unit HTML", "Unit Problem"]}])
Пример #2
0
    def do_action_and_verify(self, action, expected_ordering):
        """
        Perform the supplied action and then verify the resulting ordering.
        """
        container = self.go_to_nested_container_page()
        action(container)

        verify_ordering(self, container, expected_ordering)

        # Reload the page to see that the change was persisted.
        container = self.go_to_nested_container_page()
        verify_ordering(self, container, expected_ordering)