adamgruber / mochawesome-report-generator

Standalone mochawesome report generator. Just add test data.
MIT License
233 stars 90 forks source link

Copy Text from Test Header #210

Open MSIH opened 1 year ago

MSIH commented 1 year ago

We want to copy text from the report but we cannot. The Test Title cell is wrapped in a button which does not allow for selecting text to copy.

Please change to text attribute from button

Cannot Copy

<button aria-expanded="true" type="button" class="test--header-btn---mI0Oy"><i class="material-icons md-18 test--icon---2jgH_ test--pass---C1Mk7"></i><h4 class="test--title---4c0rg" title="Find Page Title = f_SaveForm: https://k2/Runtime/Runtime/Runtime/Form/f__SaveForm2">Find Page Title = f_SaveForm: https://k2/Runtime/Runtime/Runtime/Form/f__SaveForm2</h4><div class="test--info---1UQNw"><span class="test--duration---2tVp5">431ms</span><i class="material-icons md-18 test--duration-icon---2KnOU fast"></i></div></button>

When i use developer tools and change to text, then I can select and copy

<text aria-expanded="true" type="button" class="test--header-btn---mI0Oy"><i class="material-icons md-18 test--icon---2jgH_ test--pass---C1Mk7"></i><h4 class="test--title---4c0rg" title="Find Page Title = f_SaveForm: https://k2/Runtime/Runtime/Runtime/Form/f__SaveForm2">Find Page Title = f_SaveForm: https://k2/Runtime/Runtime/Runtime/Form/f__SaveForm2</h4><div class="test--info---1UQNw"><span class="test--duration---2tVp5">431ms</span><i class="material-icons md-18 test--duration-icon---2KnOU fast"></i></div></text>