argus-eyes
Version:
A lightweight commandline tool for visual regression testing of UI components.
36 lines (35 loc) • 768 B
HTML
<html>
<head>
<style>
.header, .footer {
display: block;
margin: 25px;
}
.header {
width: 250px;
height: 100px;
background: crimson;
}
.footer {
width: 100px;
height: 250px;
background: crimson;
}
.footer.active {
background: royalblue;
}
</style>
</head>
<body>
<div class="header"></div>
<div class="footer"></div>
<script>
window._waitForScript1 = false;
setTimeout(function() {
document.querySelector('.footer').classList.add('active');
window._waitForScript1 = true;
}, 1500);
</script>
</body>
</html>