页面分双屏滑动: 第一屏看板/第二屏候选人列表, 左右箭头+键盘方向键+触屏滑动, 圆点指示器
This commit is contained in:
+4
-2
@@ -45,8 +45,10 @@ const sleep = (ms) => new Promise(r => setTimeout(r, ms));
|
||||
const canvasN = await p.evaluate(() => document.querySelectorAll('#main canvas').length);
|
||||
ok(`图表已渲染(canvas=${canvasN},≥5)`, canvasN >= 5);
|
||||
|
||||
console.log('== 4. 候选人列表与筛选 ==');
|
||||
await sleep(500);
|
||||
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 rows1 = await p.evaluate(() => document.querySelectorAll('#tbody tr').length);
|
||||
ok(`默认列表有数据(${rows1}行)`, rows1 > 0);
|
||||
await p.selectOption('#q_level', '推荐');
|
||||
|
||||
Reference in New Issue
Block a user