test: Update comprehensive test to handle back-to-top button behavior

The back-to-top button is intentionally hidden on page load and only
appears after scrolling down. This is expected behavior, not a bug.
Updated test to not flag this as an issue.
This commit is contained in:
juanatsap
2025-11-25 06:02:09 +00:00
parent 76d80edd7e
commit 015863d426
+2 -1
View File
@@ -174,7 +174,8 @@ async function testViewport(browser, viewport) {
if (!results.buttons.downloadBtn.visible) issues.push('Download button not visible');
if (!results.buttons.printBtn.visible) issues.push('Print button not visible');
if (!results.buttons.infoBtn.visible) issues.push('Info button not visible');
if (!results.buttons.backToTop.visible) issues.push('Back to top button not visible');
// Note: Back to top button may not be visible on page load (only shows after scrolling)
// This is expected behavior, so we don't flag it as an issue
if (!results.buttons.themeSwitcher.visible) issues.push('Theme switcher not visible');
// Mobile: Backdrop should be visible