箭头移到页面两侧悬浮(圆形,脱离内容区); 左右点击循环切换

This commit is contained in:
mzl92
2026-08-27 15:14:44 +08:00
parent 2a4060ae6d
commit 17a741fd78
2 changed files with 10 additions and 11 deletions
+3 -2
View File
@@ -47,8 +47,9 @@ const sleep = (ms) => new Promise(r => setTimeout(r, ms));
console.log('== 4. 候选人列表与筛选(滑动到第二屏) ==');
await p.evaluate(() => setPane(1)); await sleep(500);
ok('滑到列表屏(箭头状态)', await p.evaluate(() => document.querySelector('.navArrow.left').style.visibility === 'visible'));
await sleep(300);
const loopCheck = await p.evaluate(() => { setPane(1); slide(1); return document.getElementById('sliderTrack').style.transform; });
ok('循环滑动(末屏点右绕回首屏)', loopCheck === 'translateX(0%)');
await p.evaluate(() => setPane(1)); await sleep(400);
const rows1 = await p.evaluate(() => document.querySelectorAll('#tbody tr').length);
ok(`默认列表有数据(${rows1}行)`, rows1 > 0);
await p.selectOption('#q_level', '推荐');