(name)
| 625 | await mkdir(OUT_DIR, { recursive: true }); |
| 626 | |
| 627 | const readability = async (name) => { |
| 628 | await closeTooltips(page); |
| 629 | const top = await measureReadability(page, READABILITY_EXCLUSIONS); |
| 630 | const scrolled = await scrollRegionsToEnd(page, READABILITY_EXCLUSIONS); |
| 631 | await page.waitForTimeout(200); |
| 632 | const bottom = await measureReadability(page, READABILITY_EXCLUSIONS); |
| 633 | await resetScroll(page, READABILITY_EXCLUSIONS); |
| 634 | extras.readability.push({ |
| 635 | name, |
| 636 | scrolledRegions: scrolled.length, |
| 637 | top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped }, |
| 638 | bottom: { candidates: bottom.candidates, overlaps: bottom.overlaps, clipped: bottom.clipped }, |
| 639 | }); |
| 640 | report.overlapViolations += top.overlaps.length + bottom.overlaps.length; |
| 641 | report.clippingViolations += top.clipped.length + bottom.clipped.length; |
| 642 | report.cutWithoutHint += [...top.clipped, ...bottom.clipped] |
| 643 | .filter((entry) => entry.kind === 'cut-without-hint').length; |
| 644 | }; |
| 645 | |
| 646 | // ------------------------------- 5a. Die fuenf Stufen, ein Symbol |
| 647 | await openApp(page, origin); |
no test coverage detected