def METHOD_NAME(self, path, base_url=QUrl(), **kwargs):
    """Load and display the given jinja test data.
    Args:
        path: The path to the test file, relative to the javascript/
              folder.
        base_url: The url to pass to set_html.
        **kwargs: Passed to jinja's template.render().
    """
    template = self._jinja_env.get_template(path)
    try:
        with self.qtbot.wait_signal(self.tab.load_finished,
                                   timeout=2000) as blocker:
            self.tab.set_html(template.render(**kwargs), base_url=base_url)
    except self.qtbot.TimeoutError:
        # Sometimes this fails for some odd reason on macOS, let's just try
        # again.
        print("Trying to load page again...")
        with self.qtbot.wait_signal(self.tab.load_finished,
                                   timeout=2000) as blocker:
            self.tab.set_html(template.render(**kwargs), base_url=base_url)
    assert blocker.args == [True]