mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Hide testing state by default to avoid perceptual diffs
The perceptual diff extension in Behat defaults to taking a screenshot of every browser step, including the "started testsession" one. A simple way to avoid this view changing is hiding the variable state behind a click event. The state info is mostly used for manual testing via dev/tests/startsession anyway.
This commit is contained in:
parent
babd24f4b9
commit
dbe10da069
@ -1,10 +1,10 @@
|
|||||||
<% if State %>
|
<% if State %>
|
||||||
<p>
|
<p>
|
||||||
Current testing state
|
<a href="#" onclick="document.getElementById('state').style.display = 'block'; return false;">Show testing state</a>
|
||||||
<ul>
|
<ul id="state" style="display: none;">
|
||||||
<% loop State %>
|
<% loop State %>
|
||||||
<li><strong>$Name:</strong> $Value</li>
|
<li><strong>$Name:</strong> $Value</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
Loading…
Reference in New Issue
Block a user