-
Notifications
You must be signed in to change notification settings - Fork 13
.visual
Arthur Guiot edited this page Oct 16, 2017
·
2 revisions
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.
eye.test("visual test", "browser", __testDir + "index.html")
<h1>My h1</h1>
<script>
eye.test( $ => $(document.querySelector("h1")).visual() )
eye.checkout()
</script>
Don't hesitate to ask your questions