test: playwright smoke (chromium + firefox) for real scroll and dots fallback

This commit is contained in:
Ilia Mashkov
2026-07-01 08:14:39 +03:00
parent 834a7ac371
commit 9fe3172ef4
3 changed files with 70 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<!doctype html>
<link rel="stylesheet" href="../src/carousel.css" />
<div class="track" id="t" style="width:300px">
<div class="slide" id="s0">0</div>
<div class="slide" id="s1">1</div>
<div class="slide" id="s2">2</div>
</div>
<div id="dots">
<button type="button" aria-label="Slide 1"></button>
<button type="button" aria-label="Slide 2"></button>
<button type="button" aria-label="Slide 3"></button>
</div>
<script type="module">
import { dots } from '../dist/dots.js';
import { createCarousel } from '../dist/index.js';
const c = createCarousel(document.getElementById('t'));
dots(c, document.getElementById('dots'));
window.c = c;
</script>