Skip to content

.visual

Arthur Guiot edited this page Oct 16, 2017 · 2 revisions

How it works?

This function is pretty useful when you want to automate tests, but you still want to have an eye on them. It will scroll to the element that you gave as the initial value, and ask you if it looks good.

Example

eye.test("visual test", "browser", __testDir + "index.html")
<h1>My h1</h1>
<script>
eye.test( $ => $(document.querySelector("h1")).visual() )
eye.checkout()
</script>

⚠️ Questions?

Don't hesitate to ask your questions ⁉️ in the issue part 😁

Clone this wiki locally