From aafdc225bca5393a666ac83254b57304d8eb934e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 11 Aug 2016 11:56:11 +0200 Subject: [PATCH] tests: Use last history item to check scroll pos --- tests/end2end/features/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index d8a0b261b..6ff600f4e 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -497,7 +497,7 @@ def should_quit(qtbot, quteproc): def _get_scroll_values(quteproc): data = quteproc.get_session() - pos = data['windows'][0]['tabs'][0]['history'][0]['scroll-pos'] + pos = data['windows'][0]['tabs'][0]['history'][-1]['scroll-pos'] return (pos['x'], pos['y'])