Fix heading detection logic and enforce correct Test/Step/Expect structure
Probable fix for: #4176
Updated https://tmt.readthedocs.io/en/stable/spec/tests.html#manual & also improves the T008 linter warning.
This might be completely incorrect as noted here: https://github.com/teemtee/tmt/issues/4176#issuecomment-3524544662
@LecrisUT: refactor: a humble effort :)
Subsequent PR: #4362
@AthreyVinay please check the test failures
Hah, tests are failing because it was using git merged reference which has the newer tests, but the packit build used the PR source which did not have the changes related to the tests. That is a fun combo to be aware of
That is a fun combo to be aware of
Thanks for following up on this!