tests: Stabilize flaky scrolling test

See #5390
This commit is contained in:
Florian Bruhin 2025-10-24 12:26:00 +02:00
parent 294534cf66
commit d8079515fa
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Scrolling</title> <title>Scrolling</title>
<script>requestAnimationFrame(() => console.log('position_absolute loaded'))</script>
</head> </head>
<body style="position: absolute"> <body style="position: absolute">
<a href="/data/hello.txt" id="link">Just a link</a> <a href="/data/hello.txt" id="link">Just a link</a>

View File

@ -327,6 +327,7 @@ Feature: Scrolling
Scenario: Relative scroll position with a position:absolute page Scenario: Relative scroll position with a position:absolute page
When I open data/scroll/position_absolute.html When I open data/scroll/position_absolute.html
And I wait for "* position_absolute loaded" in the log
And I run :scroll-to-perc 100 And I run :scroll-to-perc 100
And I wait until the scroll position changed And I wait until the scroll position changed
And I run :scroll-page --bottom-navigate next 0 1 And I run :scroll-page --bottom-navigate next 0 1