From be1f0de1960bc2e6c3c5f698562c49e01701a003 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 7 May 2021 20:17:13 +0200 Subject: [PATCH] try to stabilize test --- autotests/parttest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp index a527ca0d8..49a29fca2 100644 --- a/autotests/parttest.cpp +++ b/autotests/parttest.cpp @@ -2136,13 +2136,13 @@ void PartTest::testLinkWithCrop() QTest::mouseMove(part.m_pageView->viewport(), QPoint(width * 0.1, width * 0.1)); // The cursor should be normal - QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); + QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); // Activate "Trim Margins" cropAction->trigger(); // The cursor should be a cross-hair - QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::CrossCursor)); + QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::CrossCursor)); const int mouseStartY = height * 0.2; const int mouseEndY = height * 0.8; @@ -2153,7 +2153,7 @@ void PartTest::testLinkWithCrop() simulateMouseSelection(mouseStartX, mouseStartY, mouseEndX, mouseEndY, part.m_pageView->viewport()); // The cursor should be normal again - QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); + QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor)); // Click a link const QPoint click(width * 0.2, height * 0.2);