I have a custom faceted view (registered with faceted:view directive) which I would like to test. In my tests I enabled faceted navigation, configured faceted widgets by importing a xml file and used one widget (simple text widget) to filter for a specifc value. Now I assert that browser.contents contains the expected values corresponding to the search. But in the section where faceted results should be displayed there is a tag in the HTML returned by browser.contents.
<div id="faceted-results" class="faceted-results">
This is the source code from eea.facetednavigation/eea/facetednavigation/browser/template/macros.pt
<!-- Results -->
<metal:results define-macro="results" tal:define="
mode mode | string:edit;
view_mode python:mode == 'view';
edit_mode python:mode == 'edit';
search_mode python:mode == 'search';
faceted_html faceted_html | string:;
<div id="faceted-results" class="faceted-results"
<tal:results replace="structure python:faceted_html" />
It seems like tal:results is not supported in zope.testbrowser. Can anybody help? Thanks in advance!