playwright/tests/assets/redirectloop1.html

10 lines
259 B
HTML
Raw Normal View History

<script>
setTimeout(() => {
const iter = window.localStorage.iter || '';
window.localStorage.iter = iter + 'a';
if (iter.length === 10)
return;
window.location.href = window.location.href.replace('loop1', 'loop2');
}, 1);
</script>>