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:
Regular → Executable
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user