behave-contrib / behave-html-pretty-formatter

HTML Pretty formatter for Behave
GNU General Public License v3.0
15 stars 4 forks source link

Remember expand/collapse state in URL hash #29

Closed fpokryvk closed 1 year ago

fpokryvk commented 1 year ago

This might be handy, if you want to send someone report with expanded "Error Message" or expanded some debug data of interested step (e.g. Journal or Screenshot).

Another side effect would be, if you update the report (rerun the test) then after the page reload it will remember the state and expand embed that was expanded (e.g. when investigating journal, after F5 it will stay expanded). On the other hand, it might break if the embed index change (e.g. failing test becomes passing, then embed IDs are different), but that is expected and should not be an issue.

This should be doable in JavaScript only.