(expected: number[])
| 60 | |
| 61 | // assert each value of stats is correct |
| 62 | async function assertStats(expected: number[]) { |
| 63 | const statsValue = await page().evaluate(() => { |
| 64 | return globalStats.map(stat => +stat.value) |
| 65 | }) |
| 66 | expect(statsValue).toEqual(expected) |
| 67 | } |
| 68 | |
| 69 | function nthRange(n: number) { |
| 70 | return `#demo div:nth-child(${n + 1}) input[type="range"]` |